mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feature: Adding extra_filters to warm_up_cache (#10675)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -576,6 +576,17 @@ class TestCore(SupersetTestCase):
|
||||
)
|
||||
assert len(data) > 0
|
||||
|
||||
dashboard = self.get_dash_by_slug("births")
|
||||
|
||||
assert self.get_json_resp(
|
||||
f"/superset/warm_up_cache?dashboard_id={dashboard.id}&slice_id={slc.id}"
|
||||
) == [{"slice_id": slc.id, "viz_error": None, "viz_status": "success"}]
|
||||
|
||||
assert self.get_json_resp(
|
||||
f"/superset/warm_up_cache?dashboard_id={dashboard.id}&slice_id={slc.id}&extra_filters="
|
||||
+ quote(json.dumps([{"col": "name", "op": "in", "val": ["Jennifer"]}]))
|
||||
) == [{"slice_id": slc.id, "viz_error": None, "viz_status": "success"}]
|
||||
|
||||
def test_shortner(self):
|
||||
self.login(username="admin")
|
||||
data = (
|
||||
|
||||
Reference in New Issue
Block a user