Skip to content
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

[COST-5919] Update OCP VMs provider map #5512

Merged
merged 6 commits into from
Feb 26, 2025

Conversation

bacciotti
Copy link
Contributor

Jira Ticket

COST-5919

Description

This change will modify API provider map to display distributed_cost in endpoints.

Testing

  1. Checkout Branch
  2. Restart Koku
  3. Hit endpoint /v1/reports/openshift/resources/virtual-machines/?limit=20
    1. You should see new fields in the response: platform_distributed, worker_unallocated_distributed, network_unattributed_distributed, storage_unattributed_distributed and distributed. (probably without values because we need some SQL changes).

Release Notes

  • Added distributed cost to the VMs endpoint.
* [COST-5919](https://issues.redhat.com/browse/COST-5919) Added distributed cost to the VMs endpoint.

Copy link

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.1%. Comparing base (5976aaa) to head (7b9ad9d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #5512     +/-   ##
=======================================
- Coverage   94.1%   94.1%   -0.0%     
=======================================
  Files        371     371             
  Lines      31569   31569             
  Branches    3385    3385             
=======================================
- Hits       29713   29712      -1     
- Misses      1204    1205      +1     
  Partials     652     652             

@bacciotti bacciotti changed the title [COST-5919] Update OCP VMs provider map. [COST-5919] Update OCP VMs provider map Feb 24, 2025
@bacciotti bacciotti added the smoke-tests pr_check will build the image and run minimal required smokes label Feb 25, 2025
@bacciotti
Copy link
Contributor Author

/retest

@bacciotti bacciotti enabled auto-merge (squash) February 25, 2025 09:22
@bacciotti
Copy link
Contributor Author

/retest

Copy link
Contributor

@lcouzens lcouzens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of questions is all.

@@ -1335,7 +1356,7 @@ def test_execute_query_with_group_by_order_by_and_limit(self):
"filter[limit]": 5,
}

url = f'{reverse("reports-openshift-cpu")}?' + urlencode(params, quote_via=quote_plus)
url = f"{reverse('reports-openshift-cpu')}?" + urlencode(params, quote_via=quote_plus)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why we changed these?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷🏻 auto formatting changed these

@bacciotti bacciotti requested a review from lcouzens February 25, 2025 16:00
@bacciotti
Copy link
Contributor Author

/retest

@bacciotti bacciotti merged commit 7fb214e into main Feb 26, 2025
14 checks passed
@bacciotti bacciotti deleted the cost-5919_update_vm_provider_map branch February 26, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smoke-tests pr_check will build the image and run minimal required smokes smokes-required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants