Uh oh!
There was an error while loading. Please reload this page.
server: add support for sorting zones in UI/API - #3242
Conversation
borisstoyanov
commented
Mar 28, 2019
@blueorangutan package |
blueorangutan
commented
Mar 28, 2019
@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Mar 28, 2019
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2660 |
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM, user now is able to sort zones
borisstoyanov
commented
Apr 5, 2019
@blueorangutan test |
blueorangutan
commented
Apr 5, 2019
@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Apr 5, 2019
Trillian test result (tid-3477)
|
DaanHoogland
left a comment
There was a problem hiding this comment.
clean implementation but somewhat based on not so clean legacy.
| @Parameter(name = ApiConstants.LOCAL_STORAGE_ENABLED, type = CommandType.BOOLEAN, description = "true if local storage offering enabled, false otherwise") | ||
| private Boolean localStorageEnabled; | ||
| @Parameter(name = ApiConstants.SORT_KEY, type = CommandType.INTEGER, description = "sort key of the disk offering, integer") |
There was a problem hiding this comment.
this is not the sortkey for the diskoffering, is it? (c&p?)
| ConfigKey<Boolean> AllowUserViewDestroyedVM = new ConfigKey<>("Advanced", Boolean.class, "allow.user.view.destroyed.vm", "false", | ||
| "Determines whether users can view their destroyed or expunging vm ", true, ConfigKey.Scope.Account); | ||
| ConfigKey<Boolean> SortKeyAscending = new ConfigKey<>("Advanced", Boolean.class, "sortkey.algorithm", "true", |
There was a problem hiding this comment.
so true means that all lists for all users are sorted ascending? (if one of template, disk offering, service offering, network offering or zone)
There was a problem hiding this comment.
Yes @DaanHoogland . That's how global config seems to have been designed and used.
There was a problem hiding this comment.
Can you rectify the description to reflect the general use-case of the config key @anuragaw ?
yadvr
commented
May 10, 2019
@anuragaw can you help fix the conflicts? |
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>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
yadvr
commented
May 30, 2019
Thanks @shwstppr |
blueorangutan
commented
May 30, 2019
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
May 30, 2019
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2814 |
anuragaw
left a comment
There was a problem hiding this comment.
@borisstoyanov has found a regression on most recent branch. Please hold off merging.
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>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
anuragaw
left a comment
There was a problem hiding this comment.
Fixed the bug. @borisstoyanov - can we please test again?
anuragaw
commented
Jun 6, 2019
@blueorangutan package |
blueorangutan
commented
Jun 6, 2019
@anuragaw a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
anuragaw
commented
Jun 6, 2019
@blueorangutan package |
blueorangutan
commented
Jun 6, 2019
@anuragaw a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jun 6, 2019
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2852 |
blueorangutan
commented
Jun 6, 2019
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2853 |
borisstoyanov
commented
Jun 7, 2019
@blueorangutan test |
blueorangutan
commented
Jun 7, 2019
@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM, attached test results
test_results.xlsx
blueorangutan
commented
Jun 7, 2019
Trillian test result (tid-3663)
|
yadvr
commented
Jun 19, 2019
Lgtm @anuragaw |
Problem: Not able to configure a sort order for the zones that are listed in various views in the UI.
Root Cause: There is no mechanism to accept sort key for existing zones or UI widget, that would allow to listing zones in the UI in a certain order.
Solution: The order of zones in listed in various views in the UI can now be configured through the newly added “sort_key” field added for the zone. It can be set using updateZone API by providing “sort_key” parameter for a zone, or by reordering the items in the zones list in the UI. UI has been updated to show ordering controls in zones list view. Database changes include updating table “data_center” by adding “sort_key” column (containing integer values and defaults to zero).
Types of changes