[COST-5029] - Override start date for OCP infra mapping #5108
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jira Ticket
COST-5029
Description
This change will override the start date being passed into the
check_cluster_infrastructure
function so daily operator payload processing attempts to match clusters to cloud providers over a wider dataset.Testing
localhost:5042/api/cost-management/v1/report_data/?schema=org1234567&provider_uuid=1db0352d-e4df-4772-b4a0-90bac1e51b15&start_date=2024-05-10
Example log:
[2024-05-15 18:54:44,394] INFO 9fc8cd8e-d453-4764-b678-89587fbecafb 1818 {'message': 'checking if OCP cluster is running on cloud infrastructure', 'tracing_id': '', 'schema': 'org1234567', 'provider_uuid': '1db0352d-e4df-4772-b4a0-90bac1e51b15', 'cluster_id': 'test_cost_ocp_on_gcp_cluster_pom', 'cluster_alias': 'OCP source for cluster test_cost_ocp_on_gcp_cluster_pom', 'start_date': datetime.date(2024, 5, 1), 'end_date': datetime.date(2024, 5, 15)}
Release Notes