You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2022/04/20 07:04:11 UTC

[superset] branch master updated: fix: dashboard standalone class not added when parameter set (#16619)

This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 5134c63ae2 fix: dashboard standalone class not added when parameter set (#16619)
5134c63ae2 is described below

commit 5134c63ae289a583e52ddd692848461f227aec50
Author: Cedric Gampert <cg...@gmail.com>
AuthorDate: Wed Apr 20 09:03:59 2022 +0200

    fix: dashboard standalone class not added when parameter set (#16619)
    
    Co-authored-by: Ville Brofeldt <vi...@gmail.com>
---
 superset/views/core.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/superset/views/core.py b/superset/views/core.py
index 27a9a039b2..1aa348d713 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -1926,6 +1926,8 @@ class Superset(BaseSupersetView):  # pylint: disable=too-many-public-methods
             request.args.get(utils.ReservedUrlParameters.EDIT_MODE.value) == "true"
         )
 
+        standalone_mode = ReservedUrlParameters.is_standalone_mode()
+
         add_extra_log_payload(
             dashboard_id=dashboard.id,
             dashboard_version="v2",
@@ -1944,6 +1946,7 @@ class Superset(BaseSupersetView):  # pylint: disable=too-many-public-methods
             bootstrap_data=json.dumps(
                 bootstrap_data, default=utils.pessimistic_json_iso_dttm_ser
             ),
+            standalone_mode=standalone_mode,
         )
 
     @has_access