-
Bug
-
Resolution: Done
-
Normal
-
None
-
5
-
False
-
None
-
False
-
-
Choosing previous month view in AWS details, then navigating to EC2 breakdown and exporting values results in invalid time_scope_value param value being passed to the API.
We expect previous month EC2 data to be exported for previous month view, to reproduce, navigate to AWS details, choose previous month view, then navigate to EC2 breakdown and export items. In browser console, you can see the api request will look like this:
https://console.stage.redhat.com/api/cost-management/v1/reports/aws/resources/ec2-compute/?cost_type=calculated_amortized_cost¤cy=USD&filter[resolution]=monthly&filter[time_scope_value]=-1&limit=0
The time_scope_value param is passed as -1, even though it should be -2 for previous month.