Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced networking settings #899

Merged
merged 23 commits into from
Sep 1, 2023

Conversation

mcm001
Copy link
Contributor

@mcm001 mcm001 commented Aug 21, 2023

Removes physicalInterface from NetworkConfig, we can get it by looking it up in the list of NetworkManager interfaces instead. Exposes managed NetworkManager interface in the UI.

Add disable-networking and clear-config command line opts

Don't love the UI yet, idk.

image

@mcm001 mcm001 requested a review from a team as a code owner August 21, 2023 22:08
@mcm001 mcm001 changed the title Expose NetworkManager interface and remove physicalInterface Advanced networking settings Aug 23, 2023
photon-client/src/components/settings/NetworkingCard.vue Outdated Show resolved Hide resolved
const saveGeneralSettings = () => {
const changingStaticIp = useSettingsStore().network.connectionType === NetworkConnectionType.Static;
const changingStaticIp =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figure out code formatting for one line statements

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linter??

photon-client/src/types/SettingTypes.ts Outdated Show resolved Hide resolved
@@ -82,12 +85,11 @@ export const useSettingsStore = defineStore("settings", {
this.network = data.networkSettings;
},
saveGeneralSettings() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should likely be renamed to save network settings in both the front and backend as it is only ever used for network settings due to general settings being read-only and lighting being handled by the websocket.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cursed that it's split up like that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best to handle in another PR

photon-client/src/components/settings/NetworkingCard.vue Outdated Show resolved Hide resolved
photon-client/src/stores/settings/GeneralSettingsStore.ts Outdated Show resolved Hide resolved
@srimanachanta
Copy link
Member

srimanachanta commented Aug 27, 2023

I'm confused, why CI is failing? This PR doesn't touch photon-lib

@mcm001
Copy link
Contributor Author

mcm001 commented Aug 27, 2023

I agree it's weird. Re running

Copy link
Member

@srimanachanta srimanachanta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minus formatting fixes, everything looks fine

@mcm001 mcm001 merged commit 306677e into PhotonVision:master Sep 1, 2023
20 checks passed
@mcm001 mcm001 deleted the 2023-08-21_networkmanager-dbus branch September 1, 2023 19:58
@mdurrani808 mdurrani808 added this to the 2024 Beta milestone Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants