From 4f5dd5ea500315153e49bc13576bd4faa9210a6b Mon Sep 17 00:00:00 2001 From: Josef Smith Date: Tue, 14 Feb 2023 15:51:39 +0000 Subject: [PATCH] removed user argument from call to dashboard url in views --- dataworkspace/dataworkspace/apps/applications/utils.py | 1 + dataworkspace/dataworkspace/apps/applications/views.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dataworkspace/dataworkspace/apps/applications/utils.py b/dataworkspace/dataworkspace/apps/applications/utils.py index 07adfc6c09..0fd07c1bb6 100644 --- a/dataworkspace/dataworkspace/apps/applications/utils.py +++ b/dataworkspace/dataworkspace/apps/applications/utils.py @@ -642,6 +642,7 @@ def get_quicksight_dashboard_name_url(dashboard_id): AwsAccountId=account_id, DashboardId=dashboard_id, IdentityType="ANONYMOUS", + Namespace = settings.QUICKSIGHT_NAMESPACE )["EmbedUrl"] return dashboard_name, dashboard_url diff --git a/dataworkspace/dataworkspace/apps/applications/views.py b/dataworkspace/dataworkspace/apps/applications/views.py index f8ced945c8..383b322020 100644 --- a/dataworkspace/dataworkspace/apps/applications/views.py +++ b/dataworkspace/dataworkspace/apps/applications/views.py @@ -231,7 +231,7 @@ def tools_html_POST(request): frame_ancestors=settings.VISUALISATION_EMBED_DOMAINS, ) def _get_embedded_quicksight_dashboard(request, dashboard_id, catalogue_item): - dashboard_name, dashboard_url = get_quicksight_dashboard_name_url(dashboard_id, request.user) + dashboard_name, dashboard_url = get_quicksight_dashboard_name_url(dashboard_id) extra_params = urlencode( [("punyCodeEmbedOrigin", f"{request.scheme}://{request.get_host()}/")] )