Skip to content

Commit

Permalink
fix: add workspace_id in PrivateDashboard model
Browse files Browse the repository at this point in the history
  • Loading branch information
stat-kwon committed Dec 20, 2023
1 parent ea46a7a commit 4c90647
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/spaceone/dashboard/info/private_dashboard_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down
3 changes: 3 additions & 0 deletions src/spaceone/dashboard/model/private_dashboard_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -36,13 +37,15 @@ class PrivateDashboard(MongoModel):
"name",
"version",
"user_id",
"workspace_id",
"domain_id",
],
"ordering": ["name"],
"indexes": [
"name",
"labels",
"user_id",
"workspace_id",
"domain_id",
],
}
Expand Down

0 comments on commit 4c90647

Please sign in to comment.