-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dataset permissions: Users are unable to see the datasets that they create #19360
Comments
I just made a small edit to the description above. I actually don't think that the creator of a dataset should be granted access to it in perpetuity. That was a flawed assumption. A better approach would be to make sure the creator is made an Owner of the new dataset by default (I believe that's already the case for most - if not all - dataset creation flows in the UI). |
We have same bug too version 1.4.1 |
I'm tagging this with the "v1.5" label, as it would be great if we could get this fixed in one of the forthcoming releases. @dpgaspar do you have thoughts on how to fix this? |
Has we discussed @villebro I agree with your approach on the charts, dashboards and datasets filters fix, where we would include the dataset ownership on the datasource permission check, we probably should take the chance to simplify and centralize these Dashboards filter: superset/superset/dashboards/filters.py Line 111 in 22a92ed
Datasets filter: superset/superset/views/base.py Line 624 in 22a92ed
Charts filter: superset/superset/charts/filters.py Line 80 in 22a92ed
|
In our deployment, we have a "sandbox" database where analysts are free to create and delete schemas and tables at will. In order to support this, we assign them a role that includes the 'can write on Dataset', 'menu access on Upload a CSV' and 'database access on [sandbox]' permissions. The database connection itself is configured to 'Allow DML' and 'Allow data upload'. When a user who has been assigned that roles creates a dataset against a table in that database, they are then unable to see their dataset listed under Datasets. It also does not appear in the drop-down on the Chart creation dialog.
How to reproduce the bug
Expected results
I would expect any user who has been assigned the same role (and thus, has database-level permission) to be able to see the dataset and create a chart that uses it. Or at the very least, I would expect the
creator and anyOwners of the dataset to see it.Actual results
Environment
Checklist
Additional context
The text was updated successfully, but these errors were encountered: