-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
False
-
None
-
False
-
RFE-6540Improve the Quota API humand readable values to be accepted
-
Quay Enterprise
-
-
Epic Goal
- the Quota API /v1/superuser/users/<namespace>/quota and /v1/superuser/organization/<namespace>/quota on the PUT and POST methods do not validate the submitted values correctly in relation to the supported Unit values of the underlying module. Furthermore, it is not possible to utilize floats that are anyway converted to bytes which are stored as integer.
- An explicit statement in the Documentation on expected values while converting between values multiplied by 1000 (KB, MB, GB,..) and 1024 (KiB, MiB, GiB) should simplify expectation of customers.
Why is this important?
- The requirement for the validation simplifies automation through API as well as more understandable reasons why values are rejected or not reflecting what Customer expect to be set as Quota value, eq setting 100 GB will result in an effective of 93 GiB to be store able until Quota will reject.
Scenarios
- Succeed setting Quota values using the approriate Units
- Fail setting Quota values without proper Unit declaration
- Fail Quota which exceeds the maximum Database field value
Acceptance Criteria
- CI - MUST be running successfully with tests automated
- Release Technical Enablement - Provide necessary release enablement details and documents.
- ...
Dependencies (internal and external)
- Documentation update to ensure Customers do update their automation with approriate Unit values (M -> MiB or MB, G -> GiB or GB) ...
Previous Work (Optional):
- None
Open questions::
- …
Done Checklist
- CI - CI is running, tests are automated and merged.
- Release Enablement <link to Feature Enablement Presentation>
- DEV - Upstream code and tests merged: <link to meaningful PR or GitHub Issue>
- DEV - Upstream documentation merged: <link to meaningful PR or GitHub Issue>
- DEV - Downstream build attached to advisory: <link to errata>
- QE - Test plans in Polarion: <link or reference to Polarion>
- QE - Automated tests merged: <link or reference to automated tests>
- DOC - Downstream documentation merged: <link to meaningful PR>