mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
chore: remove annotation layer FAB CRUD model view (#22178)
This commit is contained in:
committed by
GitHub
parent
d1567ba06d
commit
a77b2d6ebf
@@ -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 => ({
|
||||
|
||||
@@ -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' }],
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user