mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Speeding up polling by not checking access (#2466)
* Speeding up polling by not checking access * Fix tests
This commit is contained in:
committed by
GitHub
parent
22522fc05f
commit
1590b8c7e5
@@ -2087,7 +2087,6 @@ class Superset(BaseSupersetView):
|
||||
return json_error_response(DATASOURCE_ACCESS_ERR)
|
||||
return json_success(json.dumps(datasource.data))
|
||||
|
||||
@has_access
|
||||
@expose("/queries/<last_updated_ms>")
|
||||
def queries(self, last_updated_ms):
|
||||
"""Get the updated queries."""
|
||||
|
||||
@@ -63,7 +63,6 @@ class RolePermissionTests(SupersetTestCase):
|
||||
self.assertIn(('can_slice', 'Superset'), perm_set)
|
||||
self.assertIn(('can_explore', 'Superset'), perm_set)
|
||||
self.assertIn(('can_explore_json', 'Superset'), perm_set)
|
||||
self.assertIn(('can_queries', 'Superset'), perm_set)
|
||||
|
||||
def assert_can_alpha(self, perm_set):
|
||||
self.assert_can_all('SqlMetricInlineView', perm_set)
|
||||
|
||||
Reference in New Issue
Block a user