feat: deprecate /superset/extra_table_metadata migrate to api v1 (#19921)

* feat: deprecate /superset/extra_table_metadata migrate to api v1

* use can_read to table_extra_metadata

* troubleshoot sqlite

* fix test

* fix test

* fix test

* fix frontend test on sqllab
This commit is contained in:
Daniel Vaz Gaspar
2022-05-04 14:55:52 +01:00
committed by GitHub
parent e9032e95ec
commit 4fdf230a56
13 changed files with 152 additions and 13 deletions

View File

@@ -147,7 +147,7 @@ export const DndFilterSelect = (props: DndFilterSelectProps) => {
if (!isSqllabView && dbId && name && schema) {
SupersetClient.get({
endpoint: `/superset/extra_table_metadata/${dbId}/${name}/${schema}/`,
endpoint: `/api/v1/database/${dbId}/table_extra/${name}/${schema}/`,
})
.then(({ json }: { json: Record<string, any> }) => {
if (json && json.partitions) {