Skip to content

Commit

Permalink
feat: remove project_group_id at budget, budget_usage model
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMin5 committed Dec 17, 2023
1 parent f98335a commit 68d29d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
7 changes: 1 addition & 6 deletions src/spaceone/cost_analysis/model/budget_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,13 @@ class Budget(MongoModel):
"limit",
"provider_filter",
"project_id",
"project_group_id",
"data_source_id",
],
"change_query_keys": {
"user_projects": "project_id",
"user_project_groups": "project_group_id",
},
"change_query_keys": {"user_projects": "project_id"},
"ordering": ["name"],
"indexes": [
"name",
"project_id",
"project_group_id",
"data_source_id",
"domain_id",
],
Expand Down
6 changes: 1 addition & 5 deletions src/spaceone/cost_analysis/model/budget_usage_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,13 @@ class BudgetUsage(MongoModel):
meta = {
"updatable_fields": ["name", "cost", "limit"],
"minimal_fields": ["budget_id", "name", "date", "usd_cost", "limit"],
"change_query_keys": {
"user_projects": "project_id",
"user_project_groups": "project_group_id",
},
"change_query_keys": {"user_projects": "project_id"},
"ordering": ["budget_id", "date"],
"indexes": [
"budget_id",
"name",
"date",
"project_id",
"project_group_id",
"data_source_id",
"domain_id",
],
Expand Down

0 comments on commit 68d29d8

Please sign in to comment.