-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add check for update only name and/or description of disk offering #6410
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 check for update only name and/or description of disk offering #6410
Conversation
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
utchoang
left a comment
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!
GabrielBrascher
left a comment
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
GutoVeronezi
left a comment
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
|
@BryanMLima Similar issue is with updateServiceOffering for host and storage tags, is it possible to add check for that as well? |
|
Found UI changes, kicking a new UI QA build |
|
@shwstppr I added the verification for service offerings as well. I tested on my lab, and worked as intended. |
|
Kudos, SonarCloud Quality Gate passed! |








Description
While trying to update a disk offering through the UI, the tag fields are always sent, even when they are not changed. This causes a bug when active volumes are using a disk offering in storage pools with tags. As ACS would interpret this as an update on the tags as well. This PR aims to fix this problem, only sending the tags if they are different from the current tags, allowing the user to update the name and/or description of disk offerings, as it is already allowed through CloudMonkey.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
On a local lab, I tried updating the disk offering with the following use cases:
All of the tests worked as expected, the UI only sent the the fields that were changed.
Then, while trying to update the name and/or description fields, and changing the tags as well, the API was sending the tags parameters, as expected.