Adjusts/fixes in quota tariff APIs#7146
Conversation
|
@DaanHoogland, can we add these adjusts/fixes to 4.18.0.0? @blueorangutan package |
|
@GutoVeronezi a 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: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5448 |
|
SonarCloud Quality Gate failed. |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
DaanHoogland
left a comment
There was a problem hiding this comment.
That was surprisingly hard to review for such a simple fix, but CLGTM ;)
| QuotaResponseBuilder _responseBuilder; | ||
|
|
||
| @Parameter(name = ApiConstants.USAGE_TYPE, type = CommandType.INTEGER, required = false, description = "Usage type of the resource") | ||
| @Parameter(name = ApiConstants.USAGE_TYPE, type = CommandType.INTEGER, description = "Usage type of the resource") |
There was a problem hiding this comment.
these have note become required, but the default is just removed !!?
There was a problem hiding this comment.
The default value of required is false; therefore, there is no need to inform it as false:
|
Thanks, @DaanHoogland |
|
Trillian test result (tid-6038)
|
Description
PR #5909 was created during the release 4.17.0.0 and the parameter
sincein APIs was written as4.17.0.0; however, #5909 was really introduced only in 4.18.0.0.This PR intends to adjust the
sincein the introduced APIs and parameters and also:UUIDofquotaTariffDeletetoID, to follow the pattern we use along other APIs;Types of changes
Feature/Enhancement Scale or Bug Severity
How Has This Been Tested?
I retested the whole tariff CRUD, as follows:
Creating a tariff
Listing the tariffs after creating
Updating the tariff
Listing the tariffs after updating
Removing the tariff
Listing the tariffs after removing