Allow user to force refresh metadata (#5933)

* Allow user to force refresh metadata

* fix javascript test error

* nit

* fix styling

* allow custom cache timeout configuration on any database

* minor improvement

* nit

* fix test

* nit

* preserve the old endpoint
This commit is contained in:
Junda Yang
2018-10-08 20:25:41 -07:00
committed by Beto Dealmeida
parent 1ee08fc216
commit 712c1aa767
8 changed files with 171 additions and 39 deletions

View File

@@ -131,7 +131,7 @@ describe('SqlEditorLeftBar', () => {
return d.promise();
});
wrapper.instance().fetchSchemas(1);
expect(ajaxStub.getCall(0).args[0]).to.equal('/superset/schemas/1/');
expect(ajaxStub.getCall(0).args[0]).to.equal('/superset/schemas/1/false/');
expect(wrapper.state().schemaOptions).to.have.length(3);
});
it('should handle error', () => {