Skip to content

Commit

Permalink
removed user argument from call to dashboard url in views
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefSmith committed Feb 14, 2023
1 parent c095aff commit 4f5dd5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dataworkspace/dataworkspace/apps/applications/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dataworkspace/dataworkspace/apps/applications/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}/")]
)
Expand Down

0 comments on commit 4f5dd5e

Please sign in to comment.