Skip to content
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

Edit dataset button is disabled after superset upgrade to 2.0 #22385

Closed
prasadpatunkar opened this issue Dec 12, 2022 · 8 comments
Closed

Edit dataset button is disabled after superset upgrade to 2.0 #22385

prasadpatunkar opened this issue Dec 12, 2022 · 8 comments
Assignees
Labels
#bug Bug report v2.0

Comments

@prasadpatunkar
Copy link

I upgraded superset from 1.4.0 to firstly 1.5.0 and then 2.0.0

When I upgraded to 2.0.0, as a Admin, option to Edit Dataset is disabled (greyed out) when I am on Edit Chart Page.
But when I go to Datasets and try to Edit, I am able to Edit the datasets.

Is there a feature flag or permission to fix this issue ?

@prasadpatunkar prasadpatunkar added the #bug Bug report label Dec 12, 2022
@rusackas
Copy link
Member

Can you test out the new 2.0.1rc5 (currently up for a vote) and let us know if this issue persists? If so, I'm sure @eschutho and/or @AAfghahi might be interested in recruiting some help to fix it for this to get into a 2.0.2 release.

@rusackas rusackas added the v2.0 label Dec 12, 2022
@prasadpatunkar
Copy link
Author

Thanks for your response @rusackas

Screenshot 2022-12-13 at 1 05 22 PM

Screenshot 2022-12-13 at 1 05 38 PM

upgrading to 2.0.1rc5 did not help :(

Note: When I upgraded from 1.4.0 to 1.5.0, there was no issue. As a Admin, I was able to edit dataset from both the places.

Issue starting showing up with 2.0.0 + versions.

Can we get some help here please.

@rusackas
Copy link
Member

CC @lyndsiWilliams

@prasadpatunkar
Copy link
Author

Hi @rusackas , we looked at the code from Git repository and found that -
line 242 needs improvement-
https://github.com/apache/superset/blob/2.0/superset-frontend/src/explore/components/controls/DatasourceControl/index.jsx

The Admin user is not included in the Editallow permission. OR clause is missing.

Can somebody please make the update and share the tag ?

Thanks.

@rusackas
Copy link
Member

@prasadpatunkar Would you be willing to open up a PR? You might beat us to this one :D

@prasadpatunkar
Copy link
Author

@rusackas , can you please mention which branch I raise PR ?
Usually PR is created against master branch and master branch already has thing change incorporated.

@rusackas
Copy link
Member

I might be a little confused here...

If the fix you are seeking is already incorporated into master, then the work is done and we should close this issue (a link here would be appreciated)

If you're looking to author a code change, you can fork the repository, create your own branch, and open a pull request against master. When the PR is open, link it here, and we'll see it through.

Thanks either way!

@mayurnewase
Copy link
Contributor

mayurnewase commented Dec 18, 2022

this regression was added by #20296 in 2.0 (this is a weird patch, there was a discussion on this and was added without tests.)

was fixed on master by #20613 (with proper tests)

I think #20613 should be cherry-picked in next releases, then we can close this.
@rusackas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report v2.0
Projects
None yet
Development

No branches or pull requests

4 participants