superset icon indicating copy to clipboard operation
superset copied to clipboard

Users can not tag a saved query if using bulk select

Open EddyBess opened this issue 1 year ago • 0 comments

Bug description

When I create a saved query with a non admin user and try to tag it using the bulk select option I get the following error :

1 items could not be tagged because you don’t have edit permissions to all selected objects.

Am I missing the permission that should allow the tagging on the saved query from bulk select ? Any help would be very appreciated !

How to reproduce the bug

With a non admin user

  1. Create a saved query
  2. Go to saved query tab
  3. Click bulk select
  4. Select the created query
  5. Click Add Tag
  6. Add any tag

Screenshots/recordings

image
image
image

Superset version

4.0.0

Python version

3.10

Node version

16

Browser

Chrome

Additional context

However I can edit/delete the saved query.

When trying to tag chart or dashboard using the bulk select it is working fine.

When trying to tag the query from the Tag object it is working fine.

When using an admin I do not encounter this problem.

Non admin users have the following roles :

  • Gamma
  • Sqllab
  • 3LC_User (Custom role I have created) List of permissions in 3LC_User Role : [can read on Dataset, can write on Dataset, can read on Query, can get or create dataset on Dataset, can warm up cache on Dataset, can export on Dataset, can duplicate on Dataset, can activate on TabStateView, can delete query on TabStateView, can migrate query on TabStateView, menu access on Manage]

Checklist

  • [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
  • [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
  • [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

EddyBess avatar Apr 11 '24 12:04 EddyBess