kiranchavala opened a new pull request, #7402:
URL: https://github.com/apache/cloudstack/pull/7402

   ### Description
   
   This PR fixes the description column output in the ui for the quota Tariff 
page
   
   
   The following PR #5909 changed the response for the  quotaTariffList api 
call 
   
   https://cloudstack.apache.org/api/apidocs-4.18/apis/quotaTariffList.html
   
   
   In 4.17 the response for the quotaTariffList api call contains the 
"description" feild
   ```
   
   
   <quotatariff>
   <usageType>1</usageType>
   <usageName>RUNNING_VM</usageName>
   <usageUnit>Compute-Month</usageUnit>
   <usageDiscriminator/>
   <tariffValue>0.00000</tariffValue>
   <effectiveDate>2010-05-04T00:00:00+0000</effectiveDate>
   <description>Running Vm Usage</description>
   <currency>$</currency>
   </quotatariff>
   ```
   
   Screenshot
   
   
![quota2](https://user-images.githubusercontent.com/1401014/230010500-dcee5cb9-86bb-47f1-84ed-26a2d26622ae.png)
   
   In 4.18 the response for the quotaTariffList api call contains the 
"usageTypeDescription" field due to that there is no response in the 
Description coloumn
   
   
   ```
   <quotatariff>
   <usageType>1</usageType>
   <usageName>RUNNING_VM</usageName>
   <usageUnit>Compute*Month</usageUnit>
   <usageDiscriminator/>
   <tariffValue>0.00000</tariffValue>
   <effectiveDate>2010-05-04T00:00:00+0000</effectiveDate>
   <usageTypeDescription>Running Vm Usage</usageTypeDescription>
   <currency>$</currency>
   <name>RUNNING_VM</name>
   <uuid>115dca9d-d2a5-11ed-b49d-1e00cd000444</uuid>
   </quotatariff>
   ```
   
   Screenshot
   
![quota1](https://user-images.githubusercontent.com/1401014/230010539-3d30b7e0-99b0-4c3d-9581-bd9b5ec8829f.png)
   
   
   
   Steps to reproduce the issue
   
   1. Enable the "quota.enable.service)" to true
   2. Restart the management server
   3. Go to UI >Quota > Tariff
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [X] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [X] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [X] Minor
   - [ ] Trivial
   
   
   ### How Has This Been Tested?
   
   Tested on the 4.18 docker simulator
   
   Screenshot
   
![quota3](https://user-images.githubusercontent.com/1401014/230011262-0e733e0f-c856-45c5-9c05-e15fa20d7130.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to