Skip to content

Commit

Permalink
[COST-4028] utilize OCPPodSummaryByNodeP in query handler (#4571)
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Couzens <[email protected]>
  • Loading branch information
maskarb and lcouzens committed Nov 8, 2023
1 parent cbf0be0 commit a780354
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions koku/api/report/ocp/provider_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from reporting.provider.ocp.models import OCPCostSummaryByNodeP
from reporting.provider.ocp.models import OCPCostSummaryByProjectP
from reporting.provider.ocp.models import OCPCostSummaryP
from reporting.provider.ocp.models import OCPPodSummaryByNodeP
from reporting.provider.ocp.models import OCPPodSummaryByProjectP
from reporting.provider.ocp.models import OCPPodSummaryP
from reporting.provider.ocp.models import OCPVolumeSummaryByProjectP
Expand Down Expand Up @@ -645,12 +646,14 @@ def __init__(self, provider, report_type, schema_name):
"cpu": {
"default": OCPPodSummaryP,
("cluster",): OCPPodSummaryP,
("node",): OCPPodSummaryByNodeP,
("project",): OCPPodSummaryByProjectP,
("cluster", "project"): OCPPodSummaryByProjectP,
},
"memory": {
"default": OCPPodSummaryP,
("cluster",): OCPPodSummaryP,
("node",): OCPPodSummaryByNodeP,
("project",): OCPPodSummaryByProjectP,
("cluster", "project"): OCPPodSummaryByProjectP,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RunPython(code=migrate_node_date, reverse_code=migrations.RunPython.noop),
# this was a 1-time data migration, so now this is a no-op
# migrations.RunPython(code=migrate_node_date, reverse_code=migrations.RunPython.noop),
]

0 comments on commit a780354

Please sign in to comment.