-
Notifications
You must be signed in to change notification settings - Fork 35
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
[WIP] Fix network overview for NetworkManager users #1317
base: master
Are you sure you want to change the base?
Conversation
See also https://bugzilla.suse.com/show_bug.cgi?id=1205715#c8 AFAICS that PR changes the behavior of that module: It just disables the "Overview" tab. But it still posts that pop-up (only once when the module starts up?). I am not sure if that still fulfills the requirements that we surely got back when that pop-up was introduced. A user might just click it away because it always appears when you start the module, and might then wonder why he can't switch to the "Overview" tab. That whole behavior with a pop-up that ALWAYS appears when you start the module has always been a user interface atrocity: Something always popping up during normal operation, when there was no error, is just wrong. But then additionally hiding the problem by just disabling a whole tab without telling the user what's going on makes the problem just worse. IMHO if we really want to spend time on this (as if we don't have anything more important to do than to take care of another fringe case like cursor keys in NCurses when selecting a tab - who cares!): Instead of just disabling the whole tab, in case Network Manager is active, there should be a bold-faced message IN the tab content: "Controlled by Network Manager" as the first thing in the tab content, and the rest of the tab content (the lists of devices etc.) should still be there, but disabled. (Note: a VBox or HBox can also get an ID, and you can disable part of a dialog by disabling that container widget). E.g.
And, like in the PR, NOT automatically switch to another tab (which is a user interface atrocity all by itself) so the user can actually read the message. And NOT post a pop-up at all, of course: The user will realize that parts cannot be configured when switching to that tab, and there will not be that horrible pop-up to get in the way. That pop-up has always been wrong. |
The only thing I miss in your "screenshot" is the part that indicates you can switch to Wicked to get those controls enabled by using the "Global Options" tab. |
That's intentional: It would be something to go to the help text. Static texts in dialogs should be minimalistic, not a replacement for the help text. Also it should be self-explanatory how to do that: It's in the first tab, after all. |
9241c51
to
eddf3a4
Compare
Thanks for your comments. I have updated the code and the description according to your suggestions. Due to possible inconsistencies, currently it makes the most sense to me not displaying any interfaces. |
The table still makes sense, even if the network interfaces are managed by Network Manager (which is the default for most home users). |
Well, we have to discuss about it because we are showing basically the ifcfg files in |
From my POV after first quick reading:
|
I agree that the best option would be reading the correct values from Network Manager. I will take a look and check the feasibility. |
I have not forgotten this PR. I still intend to work on it soon but I am currently a bit busy. |
Please allow me to propose a solution to make navigating the network section more flawlessly.
Problem
The user is displayed a message when entering the tab
Overview
in theNetwork Settings
of YaST and by acknowledging that message, forced to switch to tabGlobal Options
. Apparently this is done to prevent a user from accessing controls that can't be used. This solution might be acceptable in most cases, although it is not possible to check the list of network interfaces anymore, even without the intention to change anything.However, in case of the ncurses UI it breaks the option to use a combination of
TAB
,Arrow Keys
,Enter
to navigate instead ofAlt+<KEY>
shortcuts. (See bug report.)https://bugzilla.suse.com/show_bug.cgi?id=1205715
Solution
This PR would disable the buttons
Add
,Edit
,Delete
on the tabOverview
as well as the interfaces table if NetworkManager is used for configuration.It will not force the user toGlobal Options
anymore when acknowledging the warning. Instead it will inform about the network setup method option inGlobal Options
. As a result, the user is still able to see the properties of the network interfaces on theOverview
page.The popup message is not shown anymore. Instead, in the box which usually displays the interface properties, an information is displayed that Network Manager is managing the interfaces.
In the help of the
Overview
page, an information about fixing this by selectingWicked
is given.Reason for hiding all interfaces:
It looks that the interfaces displayed might differ from reality if NM is used. C.f. https://bugzilla.suse.com/show_bug.cgi?id=1205715#c7
From my perspective it makes sense to handle this separately if required. As a result, these are hidden as well with the current code.
Testing
The code was tested manually on openSUSE Tumbleweed.
Request for comments
warningmessage to only tell that NetworkManager is used. If:network_manager
as backend means that the network could also be disabled, please let me know as well. To me it appears that we know that the network is not disabled but just NetworkManager is used if that is the value.Screenshots