From 2c4913293a4bc1c5a7c0213bb4cd4f62aac62429 Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Mon, 23 Dec 2024 13:08:28 +0900 Subject: [PATCH] refactor: change the sharing policy of public dashboard Signed-off-by: Jongmin Kim --- src/spaceone/dashboard/service/public_dashboard_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spaceone/dashboard/service/public_dashboard_service.py b/src/spaceone/dashboard/service/public_dashboard_service.py index 315a8d7..b208540 100644 --- a/src/spaceone/dashboard/service/public_dashboard_service.py +++ b/src/spaceone/dashboard/service/public_dashboard_service.py @@ -85,7 +85,7 @@ def create_dashboard(self, params_dict: dict) -> dict: elif resource_group == "WORKSPACE": if workspace_id := params_dict.get("workspace_id"): self.identity_mgr.check_workspace(workspace_id, domain_id) - params_dict["project_id"] = "-" + params_dict["project_id"] = "*" else: raise ERROR_REQUIRED_PARAMETER(key="workspace_id") else: @@ -340,7 +340,7 @@ def share_dashboard(self, params_dict: dict) -> dict: else: updated_params["scope"] = "WORKSPACE" elif pub_dashboard_vo.resource_group == "WORKSPACE": - updated_params["project_id"] = "*" + # updated_params["project_id"] = "*" updated_params["scope"] = "PROJECT" elif pub_dashboard_vo.resource_group == "PROJECT": raise ERROR_PERMISSION_DENIED() @@ -424,7 +424,7 @@ def unshare_dashboard(self, params_dict: dict) -> dict: updated_params["project_id"] = "-" updated_params["scope"] = None elif pub_dashboard_vo.resource_group == "WORKSPACE": - updated_params["project_id"] = "-" + # updated_params["project_id"] = "-" updated_params["scope"] = None elif pub_dashboard_vo.resource_group == "PROJECT": raise ERROR_PERMISSION_DENIED()