Speeding up polling by not checking access (#2466)

* Speeding up polling by not checking access

* Fix tests
This commit is contained in:
Maxime Beauchemin
2017-03-23 22:46:25 -07:00
committed by GitHub
parent 22522fc05f
commit 1590b8c7e5
2 changed files with 0 additions and 2 deletions

View File

@@ -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."""

View File

@@ -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)