-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
fix: enable admin to edit dataset in explore #20613
Conversation
Codecov Report
@@ Coverage Diff @@
## master #20613 +/- ##
==========================================
+ Coverage 66.79% 66.81% +0.01%
==========================================
Files 1754 1752 -2
Lines 65566 65635 +69
Branches 6935 6940 +5
==========================================
+ Hits 43798 43857 +59
- Misses 20013 20016 +3
- Partials 1755 1762 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -139,6 +139,27 @@ test('Click on Edit dataset', async () => { | |||
).toBeInTheDocument(); | |||
}); | |||
|
|||
test('Edit dataset should be disabled when user is not admin', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pkdotson!
* add conditional * add test * fix lint (cherry picked from commit e1a918f)
* add conditional * add test * fix lint (cherry picked from commit e1a918f)
* add conditional * add test * fix lint (cherry picked from commit e1a918f)
* add conditional * add test * fix lint
SUMMARY
This pr fixes an issue where the dataset is not editable if user is admin in explore.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
after
Screen.Recording.2022-07-05.at.8.18.10.PM.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION