mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
feat(annotations): security permissions simplification (#12014)
* Changed security permissions for annotations and annotation layers * Updated permissions in annotation layers list * Created test for retrieving premissions info. Updated uris from f-strings to strings * Updated annotations in security_tests and added annotations to NEW_SECURITY_CONVERGE_VIEWS * Added migration for annotations security converge * Updated current revision after rebase master * Updated migration name to annotations security converge * Updated annotations permissions names in AnnotationLayersList and updated test since 'can_write' has wider permissions * Updated annotations migration to current
This commit is contained in:
@@ -61,7 +61,7 @@ const mockUser = {
|
||||
};
|
||||
|
||||
fetchMock.get(layersInfoEndpoint, {
|
||||
permissions: ['can_delete'],
|
||||
permissions: ['can_write'],
|
||||
});
|
||||
fetchMock.get(layersEndpoint, {
|
||||
result: mocklayers,
|
||||
@@ -156,7 +156,7 @@ describe('AnnotationLayersList', () => {
|
||||
});
|
||||
|
||||
it('shows/hides bulk actions when bulk actions is clicked', async () => {
|
||||
const button = wrapper.find(Button).at(0);
|
||||
const button = wrapper.find(Button).at(1);
|
||||
act(() => {
|
||||
button.props().onClick();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user