-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Allow modification of user vm details if user.vm.readonly.details is empty #10456
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
base: 4.22
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.22 #10456 +/- ##
=========================================
Coverage 17.55% 17.56%
- Complexity 15535 15536 +1
=========================================
Files 5909 5909
Lines 529053 529066 +13
Branches 64619 64622 +3
=========================================
+ Hits 92879 92908 +29
+ Misses 425719 425703 -16
Partials 10455 10455
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
@blueorangutan package |
|
@Pearl1594 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
@Pearl1594 |
Currently when value is null, it picks up the default value, but in this case, we do not want it to use the default value. Unless I understood you wrong @weizhouapache |
Yes, @Pearl1594 , but I think it is still good to use a ConfigKey and let users set it explicitely to "". |
yes. using ConfigKey is more generic, it is easier to support more configurations in the future, for example |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12576 |
|
|
||
| -- Update the value of user.vm.readonly.details record in the configuration table to "" if it is NULL | ||
| UPDATE `cloud`.`configuration` SET value = '' WHERE name = 'user.vm.readonly.details' AND value IS NULL; |
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.
I believe that this is not the correct script for this update 😄
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.
@Pearl1594 I think we want this line in the (to be created) 4.19.2 -> 4.19.3 and in the 4.20.0 -> 4.20.1 scripts. We must also test if this upgrade will then work from 4.19.3 to 4.20.1 (it should according to theory but testing is still advised (by me))
code looks good btw
a970680 to
dec53f7
Compare
|
|
@Pearl1594 , can you revisit? |
|
Will look into it tomorrow @DaanHoogland . |
dec53f7 to
2e631b5
Compare
|
@weizhouapache do you think this is a better / generic solution. I've taken into advisement your suggestion from earlier.. |
|
|
@blueorangutan package |
|
@Pearl1594 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15709 |





Description
This PR fixes: #10305
Currently when the global setting 'user.vm.readonly.details' is cleared, it sets the global setting value to NULL. Querying a global setting whose value is null returns the default value. Hence, updating this specific global setting value to "" as opposed to NULL.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?