-
Notifications
You must be signed in to change notification settings - Fork 6
server: add support for sorting zones in UI/api #32
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
Conversation
This adds support to allow admins to sort zones, and based on the sorted order the zones will be listed in UI and API. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@borisstoyanov @PaulAngus hold testing until master is available again. This introduces an upgrade path that is missing between 4.12 and 4.13. The sql changes are:
|
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.
lgtm, except for this design question
@Column(name = "is_local_storage_enabled") | ||
boolean localStorageEnabled; | ||
|
||
@Column(name = "sort_key") |
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.
@rhtyd should we store such a end-user specific configuration in the business object for data-centre? It seems out of place here. What's your consideration?
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.
Agree they can be details, however, this replicates the design/implementation for the template sorting feature; the sort_key is also used in template tables.
Db upgrade path in progress: #34 |
Moved: apache#3242 |
Async job poller tech capability implementation, show notifications on success/fail. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Allows admins to provide VR IP (v4 & v6) when creating shared networks, provided the Network offering provides at least one service that requires a virtual router Upstream PR apache#4503 Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
* Prevent addition of duplicate PF rules on scale up and no rules left behind on scale down (#32) * fix missing dependency injection * NSX: Fix concurrency issues on port forwarding rules deletion (#37) * Fix concurrency issues on port forwarding rules deletion * Refactor objectExists * Fix unit test * Fix test * Small fixes * CKS: Externalize control and worker node setup wait time and installation attempts (#38) * NSX: Add shared network support (#41) * NSX: Fix number of physical networks for Guest traffic checks and leftover rules on CKS cluster deletion (#45) * Fix pf rules removal on CKS cluster deletion * Fix check for number of physical networks for guest traffic * Fix unit test * fix logger * NSX: Handle CheckHealthCommand to avoid host disconnection and errors on APIs * NSX: Handle CheckHealthCommand to avoid host disconnection and errors on APIs * Remove unused string * fix logger * Update UDP active monitor to ICMP * Fix NPE on restarting VPC with additional public IPs * NSX / VPC: Reuse Source NAT IP from systemVM range on restarts * CKS: Public IP not found for VPC networks * Externalize retries and inverval for NSX segment deletion (#67) * remove unused import * remove duplicate imports * remove unused import * revert externalizing cks settings * fix test * Refactor log messages * Address comments * Fix issue caused due to forward merge: 90fe1d --------- Co-authored-by: Nicolas Vazquez <nicovazquez90@gmail.com> Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Problem: Not able to configure a sort order for the zone that are listed in various views in the UI.
Root Cause: There was no mechanism to accept sort key for existing zones or UI widget to drag them in a certain order.
Solution: The order can now be configured through the editZone API by providing sort_key parameter for zones, or by reordering the zones in the Zones list in the UI. Database changes include updating table “data_center” which contains the “sort_key” column containing integer values and defaults to zero.
Types of changes