You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by GitBox <gi...@apache.org> on 2018/02/05 19:48:17 UTC

[GitHub] mistercrunch closed pull request #4337: Jsonify dashboard payload

mistercrunch closed pull request #4337: Jsonify dashboard payload
URL: https://github.com/apache/incubator-superset/pull/4337
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/superset/views/core.py b/superset/views/core.py
index ec4cce1fb1..47bca55386 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -1961,6 +1961,9 @@ def dashboard(**kwargs):  # noqa
             'common': self.common_bootsrap_payload(),
         }
 
+        if request.args.get('json') == 'true':
+            return json_success(json.dumps(bootstrap_data))
+
         return self.render_template(
             'superset/dashboard.html',
             entry='dashboard',


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services