Skip to content

Commit

Permalink
Merge pull request #272 from ImMin5/master
Browse files Browse the repository at this point in the history
Temporary remove tags group by aggregation after cost sync
  • Loading branch information
ImMin5 authored Aug 29, 2024
2 parents 69870d3 + 7296d36 commit 48bc8d3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/spaceone/cost_analysis/service/job_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,10 +892,11 @@ def _aggregate_monthly_cost_data(
}
)

for tag_key in tag_keys:
query["group_by"].append(
{"key": f"tags.{tag_key}", "name": f"tags_{tag_key}"}
)
# temporary remove tag group by
# for tag_key in tag_keys:
# query["group_by"].append(
# {"key": f"tags.{tag_key}", "name": f"tags_{tag_key}"}
# )

for data_key in data_keys:
query["fields"].update(
Expand Down Expand Up @@ -1002,9 +1003,9 @@ def _get_data_source_account_map(
)

for data_source_account_vo in data_source_account_vos:
data_source_account_map[
data_source_account_vo.account_id
] = data_source_account_vo
data_source_account_map[data_source_account_vo.account_id] = (
data_source_account_vo
)

return data_source_account_map

Expand Down

0 comments on commit 48bc8d3

Please sign in to comment.