mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
feat(file uploads): List only allowed schemas in the file uploads dialog (#32702)
This commit is contained in:
@@ -78,11 +78,11 @@ beforeEach(() => {
|
||||
result: [],
|
||||
});
|
||||
|
||||
fetchMock.get('glob:*api/v1/database/1/schemas/', {
|
||||
fetchMock.get('glob:*api/v1/database/1/schemas/?q=(upload_allowed:!t)', {
|
||||
result: ['information_schema', 'public'],
|
||||
});
|
||||
|
||||
fetchMock.get('glob:*api/v1/database/2/schemas/', {
|
||||
fetchMock.get('glob:*api/v1/database/2/schemas/?q=(upload_allowed:!t)', {
|
||||
result: ['schema1', 'schema2'],
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user