feat(file uploads): List only allowed schemas in the file uploads dialog (#32702)

This commit is contained in:
Vitor Avila
2025-03-17 23:36:16 -03:00
committed by GitHub
parent 4adf44a43c
commit e35145c816
5 changed files with 110 additions and 5 deletions

View File

@@ -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'],
});
});