chore: remove annotation layer FAB CRUD model view (#22178)

This commit is contained in:
Daniel Vaz Gaspar
2022-11-22 16:19:57 +00:00
committed by GitHub
parent d1567ba06d
commit a77b2d6ebf
10 changed files with 35 additions and 166 deletions

View File

@@ -115,7 +115,7 @@ const NotFoundContent = () => (
<span>
{t('Add an annotation layer')}{' '}
<a
href="/annotationlayermodelview/list"
href="/annotationlayer/list"
target="_blank"
rel="noopener noreferrer"
>
@@ -300,7 +300,7 @@ class AnnotationLayer extends React.PureComponent {
if (isLoadingOptions) {
if (sourceType === ANNOTATION_SOURCE_TYPES.NATIVE) {
SupersetClient.get({
endpoint: '/annotationlayermodelview/api/read?',
endpoint: '/api/v1/annotation_layer/',
}).then(({ json }) => {
const layers = json
? json.result.map(layer => ({

View File

@@ -36,7 +36,7 @@ beforeAll(() => {
value => value.value,
);
fetchMock.get('glob:*/annotationlayermodelview/api/read?*', {
fetchMock.get('glob:*/api/v1/annotation_layer/*', {
result: [{ label: 'Chart A', value: 'a' }],
});