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/25 07:47:29 UTC

[superset] 08/14: 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 1.5
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 2b6e35e039acde88381cd43150a9a07a7dfe6856
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>
    (cherry picked from commit 5134c63ae289a583e52ddd692848461f227aec50)
---
 superset/views/core.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/superset/views/core.py b/superset/views/core.py
index 6e329d1f48..81e04c535f 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -2024,6 +2024,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",
@@ -2042,6 +2044,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