-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Improve global settings UI to be more intuitive/logical #5797
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
Merged
DaanHoogland
merged 36 commits into
apache:main
from
shapeblue:global-settings-intuitive-ui
Jan 31, 2023
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
dd41e16
Improve global settings in the UI to be more intuitive/logical
sureshanaparti cbda03d
config and ui changes
sureshanaparti 25a5de1
config depot fixes
sureshanaparti 7337bbf
ui alignment and test changes
sureshanaparti e5fc891
Fix typo on XML definition
nvazquez 719d8f8
Add component annotation to mock class
nvazquez 9cc6f61
Updated config group / subgroup dao component mocks, and added compon…
sureshanaparti 8b69a7b
ui improvements / refactoring
sureshanaparti 7957819
Review comments, and code improvements
sureshanaparti 7911f5c
review changes
sureshanaparti b34a636
config group improvements
sureshanaparti 4c374fd
review changes, rebase / conflicts fixes
sureshanaparti 4239084
Fix upgrade path
davidjumani 31b4463
Refactor ui to externalize fetching of data
davidjumani 48d831f
Fix incorrect categorizing
davidjumani b6f1130
Fix ui issues
davidjumani 24113a7
Refactor ui
davidjumani 51896a8
Rename vue files
davidjumani 33ebe69
Adding possible values for list styled gs
davidjumani 4ee3199
Further changes
davidjumani f0e9fbf
Merge branch 'main' of github.com:apache/cloudstack into global-setti…
davidjumani c5ad181
ui fixes
davidjumani ab91fac
Updating since in api param
davidjumani ee42179
UI enhancements
davidjumani 9e7c3d8
Apply suggestions from code review
davidjumani 38da4ac
Addressing sonarcloud issues
davidjumani 75861e8
Apply suggestions from code review
davidjumani b0a57a7
Use idempotent add column in db upgrade
davidjumani b7ba8c8
Merge branch 'main' of github.com:apache/cloudstack into global-setti…
davidjumani 21012c6
Merge branch 'main' into global-settings-intuitive-ui
DaanHoogland 7217aba
Cosmetic changes
davidjumani 2afcf71
Merge branch 'main' into global-settings-intuitive-ui
DaanHoogland 00e8809
Merge branch 'main' of github.com:apache/cloudstack into global-setti…
davidjumani 519ab0e
Change network.router.EnableServiceMonitoring to Boolean
davidjumani 7d0a9bb
Cosmetic changes
davidjumani e92b64c
Fix incompatible types
davidjumani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
api/src/main/java/org/apache/cloudstack/api/command/admin/config/ListCfgGroupsByCmd.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| package org.apache.cloudstack.api.command.admin.config; | ||
|
|
||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
|
|
||
| import org.apache.cloudstack.api.APICommand; | ||
| import org.apache.cloudstack.api.ApiConstants; | ||
| import org.apache.cloudstack.api.BaseCmd; | ||
| import org.apache.cloudstack.api.BaseListCmd; | ||
| import org.apache.cloudstack.api.Parameter; | ||
| import org.apache.cloudstack.api.response.ConfigurationGroupResponse; | ||
| import org.apache.cloudstack.api.response.ListResponse; | ||
| import org.apache.cloudstack.config.ConfigurationGroup; | ||
| import org.apache.log4j.Logger; | ||
|
|
||
| import com.cloud.utils.Pair; | ||
|
|
||
| @APICommand(name = ListCfgGroupsByCmd.APINAME, description = "Lists all configuration groups (primarily used for UI).", responseObject = ConfigurationGroupResponse.class, | ||
| requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, since = "4.18.0") | ||
| public class ListCfgGroupsByCmd extends BaseListCmd { | ||
| public static final Logger s_logger = Logger.getLogger(ListCfgGroupsByCmd.class.getName()); | ||
|
|
||
| public static final String APINAME = "listConfigurationGroups"; | ||
|
|
||
| // /////////////////////////////////////////////////// | ||
| // ////////////// API parameters ///////////////////// | ||
| // /////////////////////////////////////////////////// | ||
|
|
||
| @Parameter(name = ApiConstants.GROUP, type = CommandType.STRING, description = "lists configuration group by group name") | ||
| private String groupName; | ||
|
|
||
| // /////////////////////////////////////////////////// | ||
| // ///////////////// Accessors /////////////////////// | ||
| // /////////////////////////////////////////////////// | ||
|
|
||
| public String getGroupName() { | ||
| return groupName; | ||
| } | ||
|
|
||
| // /////////////////////////////////////////////////// | ||
| // ///////////// API Implementation/////////////////// | ||
| // /////////////////////////////////////////////////// | ||
|
|
||
| @Override | ||
| public String getCommandName() { | ||
| return APINAME.toLowerCase() + BaseCmd.RESPONSE_SUFFIX; | ||
| } | ||
|
|
||
| @Override | ||
| public void execute() { | ||
| Pair<List<? extends ConfigurationGroup>, Integer> result = _mgr.listConfigurationGroups(this); | ||
davidjumani marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ListResponse<ConfigurationGroupResponse> response = new ListResponse<>(); | ||
| List<ConfigurationGroupResponse> configGroupResponses = new ArrayList<>(); | ||
| for (ConfigurationGroup cfgGroup : result.first()) { | ||
| ConfigurationGroupResponse cfgGroupResponse = _responseGenerator.createConfigurationGroupResponse(cfgGroup); | ||
| configGroupResponses.add(cfgGroupResponse); | ||
| } | ||
|
|
||
| response.setResponses(configGroupResponses, result.second()); | ||
| response.setResponseName(getCommandName()); | ||
| setResponseObject(response); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Any reason this would not suffice?
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.
Just for consistency across the function definitions in interface