Adding a new Security Rule to a Security Group shouldn't remove the sort on the table
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Ana Krivokapić | ||
Icehouse |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If I'm manually adding security rules to a security group, I don't think it's unreasonable for me to have the table sorted on Port or Protocol while I'm building out the group, but if I have the table sorted, each time you add a new rule, it reverts to the default sort of the table. (Side question, how is the table sorted by default? It doesn't appear to be port or direction or protocol, or ether type, or remote, or even when the rule was created. It just looks like a jumbled mess, hence why I want to keep it sorted...)
If I have the table sorted on Port, so I can keep track of which ones I've added already easily, it would be great if Horizon was smart enough to keep the sort applied, and just add the new rule, rather than forcing me to resort the table again, click add, create the rule, sort the table again, etc etc.
It would also be nice if there was a table sort indicator, but that's probably a topic for another bug :)
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | juno-2 → 2014.2 |
I don't see a sort API option, but perhaps we could provide a reasonable default sort ourselves server-side.
https:/ /github. com/openstack/ horizon/ blob/e790ac070e 9b8b735c54c613d 26e1ee92b7af0b0 /openstack_ dashboard/ dashboards/ project/ access_ and_security/ security_ groups/ views.py# L40
Currently it would be difficult to preserve the user-set sorting option as it is set client-side, while adding a rule reloads the page.