Move metadata cache one layer up (#6153)

* Update wording

* nit update for api endpoint url

* move metadata cache one layer up

* refactor cache

* fix flake8 and DatabaseTablesAsync

* nit

* remove logging for cache

* only fetch for all tables that allows cross schema fetch

* default allow_multi_schema_metadata_fetch to False

* address comments

* remove unused defaultdict

* flake 8
This commit is contained in:
Junda Yang
2018-10-31 13:23:26 -07:00
committed by Beto Dealmeida
parent af38d254f0
commit c552c125d7
8 changed files with 216 additions and 168 deletions

View File

@@ -715,7 +715,7 @@ class CoreTests(SupersetTestCase):
id=db_id,
extra=extra)
data = self.get_json_resp(
url='/superset/schema_access_for_csv_upload?db_id={db_id}'
url='/superset/schemas_access_for_csv_upload?db_id={db_id}'
.format(db_id=dbobj.id))
assert data == ['this_schema_is_allowed_too']