From 68d29d8397b630b2835fdae1c0836d979c28c6fd Mon Sep 17 00:00:00 2001 From: ImMin5 Date: Mon, 18 Dec 2023 02:40:53 +0900 Subject: [PATCH] feat: remove project_group_id at budget, budget_usage model --- src/spaceone/cost_analysis/model/budget_model.py | 7 +------ src/spaceone/cost_analysis/model/budget_usage_model.py | 6 +----- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/spaceone/cost_analysis/model/budget_model.py b/src/spaceone/cost_analysis/model/budget_model.py index b2ce924c..169fe959 100644 --- a/src/spaceone/cost_analysis/model/budget_model.py +++ b/src/spaceone/cost_analysis/model/budget_model.py @@ -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", ], diff --git a/src/spaceone/cost_analysis/model/budget_usage_model.py b/src/spaceone/cost_analysis/model/budget_usage_model.py index b03dedad..1305b0e7 100644 --- a/src/spaceone/cost_analysis/model/budget_usage_model.py +++ b/src/spaceone/cost_analysis/model/budget_usage_model.py @@ -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", ],