fix: Update Query Context on Explore loading (#15865)

* create serialize json function

* saving for now

* saving for now

* lint

* cleanup

* fix network request

* update test

* Update tests/integration_tests/charts/api_tests.py

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
This commit is contained in:
Hugh A. Miles II
2021-07-26 15:43:25 -04:00
committed by GitHub
parent 5be0a89625
commit 62550db385
3 changed files with 24 additions and 3 deletions

View File

@@ -722,6 +722,7 @@ class TestChartApi(SupersetTestCase, ApiOwnersTestCaseMixin, InsertChartMixin):
"params": None,
"slice_name": "title",
"viz_type": None,
"query_context": None,
}
data = json.loads(rv.data.decode("utf-8"))
self.assertEqual(data["result"], expected_result)