diff --git a/src/spaceone/dashboard/info/private_dashboard_info.py b/src/spaceone/dashboard/info/private_dashboard_info.py index a0d7b50..a5a5fce 100644 --- a/src/spaceone/dashboard/info/private_dashboard_info.py +++ b/src/spaceone/dashboard/info/private_dashboard_info.py @@ -14,6 +14,7 @@ def PrivateDashboardInfo(dashboard_vo: PrivateDashboard, minimal=False): "version": dashboard_vo.version, "labels": change_list_value_type(dashboard_vo.labels), "user_id": dashboard_vo.user_id, + "workspace_id": dashboard_vo.workspace_id, "domain_id": dashboard_vo.domain_id, } diff --git a/src/spaceone/dashboard/model/private_dashboard_model.py b/src/spaceone/dashboard/model/private_dashboard_model.py index bc5dea0..c9dee8e 100644 --- a/src/spaceone/dashboard/model/private_dashboard_model.py +++ b/src/spaceone/dashboard/model/private_dashboard_model.py @@ -17,6 +17,7 @@ class PrivateDashboard(MongoModel): labels = ListField(StringField()) tags = DictField(default={}) user_id = StringField(max_length=40) + workspace_id = StringField(max_length=40) domain_id = StringField(max_length=40) created_at = DateTimeField(auto_now_add=True) updated_at = DateTimeField(auto_now=True) @@ -36,6 +37,7 @@ class PrivateDashboard(MongoModel): "name", "version", "user_id", + "workspace_id", "domain_id", ], "ordering": ["name"], @@ -43,6 +45,7 @@ class PrivateDashboard(MongoModel): "name", "labels", "user_id", + "workspace_id", "domain_id", ], }