-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add "networks" panel under "volumes" #424
Conversation
Thanks for making this! Sorry I've been super busy lately but I'll give this a review when I get the chance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for taking so long to review!
This PR is great. All the code looks good: I just have one question
// we're sorting these networks based on whether they have labels defined, | ||
// because those are the ones you typically care about. | ||
// Within that, we also sort them alphabetically | ||
Sort: func(a *commands.Network, b *commands.Network) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume we do something similar with another panel, but for networks is it actually true that we care more about labels than names? I suspect not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's exactly like volumes sorting, which fits to networks, i guess.
So, may be should we sort networks by driver at first and then by names?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking we just sort by name: I doubt the typical user has many networks configured anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)
Tested locally and it works like a charm. Looks like you need to regenerate cheatsheets though (using |
Thanks for making this @tony-sol ! |
Should we be seeing this in the |
Just a little improvement with adding "Networks" panel under "Volumes" one