-
Notifications
You must be signed in to change notification settings - Fork 1.2k
api,server: allow cleaning up vm extraconfig #11974
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: main
Are you sure you want to change the base?
Conversation
Fixes apache#9878 Signed-off-by: Abhishek Kumar <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11974 +/- ##
=========================================
Coverage 17.56% 17.57%
- Complexity 15548 15557 +9
=========================================
Files 5913 5913
Lines 529440 529465 +25
Branches 64670 64671 +1
=========================================
+ Hits 93019 93062 +43
+ Misses 425963 425943 -20
- Partials 10458 10460 +2
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 |
|
@shwstppr 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 15738 |
Signed-off-by: Abhishek Kumar <[email protected]>
|
@blueorangutan package |
|
@shwstppr 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. |
DaanHoogland
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.
clgtm
| sb.and("vmId", sb.entity().getResourceId(), SearchCriteria.Op.EQ); | ||
| sb.and("prefix", sb.entity().getName(), SearchCriteria.Op.LIKE); | ||
| sb.done(); | ||
| SearchCriteria<VMInstanceDetailVO> sc = sb.create(); | ||
| sc.setParameters("vmId", vmId); | ||
| sc.setParameters("prefix", prefix + "%"); |
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.
This bit gives me to think that we might want to include these in a DbConstants, similar to the ApiConstants. No critisism on this PR as I know this is the general practice atm.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15874 |
abh1sar
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.
A minor comment. Otherwise the code LGTM.
| private void overrideDefaultConfigValue(final ConfigKey configKey, final Object o) { | ||
| try { | ||
| final String name = "_defaultValue"; | ||
| Field f = ConfigKey.class.getDeclaredField(name); |
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.
Should we revert this in teardown?
Description
Fixes #9878
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
clear-vm-extraconfig.mp4
How did you try to break this feature and the system with this change?