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

fix: Allow dataset owners to explore their datasets #20382

Merged
merged 8 commits into from
Jul 6, 2022

Conversation

reesercollins
Copy link
Contributor

SUMMARY

This fixes a missed codepath by @cccs-tom's fix to #19360 which was pointed out by @HeathLee.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

Try to explore a dataset which you own. You should now be able to.

ADDITIONAL INFORMATION

@reesercollins reesercollins marked this pull request as draft June 14, 2022 19:17
@reesercollins reesercollins marked this pull request as ready for review June 14, 2022 19:26
@pull-request-size pull-request-size bot added size/M and removed size/S labels Jun 14, 2022
@reesercollins
Copy link
Contributor Author

@dpgaspar I see you approved the original fix to the linked issue. Would you mind taking a look?

@rusackas rusackas requested review from dpgaspar and eschutho June 15, 2022 20:29
@codecov
Copy link

codecov bot commented Jun 21, 2022

Codecov Report

Merging #20382 (4e8ff45) into master (b33c23e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master   #20382   +/-   ##
=======================================
  Coverage   66.75%   66.75%           
=======================================
  Files        1740     1740           
  Lines       65156    65160    +4     
  Branches     6900     6900           
=======================================
+ Hits        43492    43496    +4     
  Misses      19915    19915           
  Partials     1749     1749           
Flag Coverage Δ
hive 53.72% <71.42%> (+<0.01%) ⬆️
mysql 82.33% <100.00%> (+<0.01%) ⬆️
postgres 82.40% <100.00%> (+<0.01%) ⬆️
presto 53.58% <71.42%> (+<0.01%) ⬆️
python 82.84% <100.00%> (+<0.01%) ⬆️
sqlite 82.19% <100.00%> (+<0.01%) ⬆️
unit 50.56% <85.71%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/charts/filters.py 94.87% <100.00%> (+0.27%) ⬆️
superset/security/manager.py 95.35% <100.00%> (+<0.01%) ⬆️
superset/views/utils.py 81.06% <100.00%> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b33c23e...4e8ff45. Read the comment docs.

@adam-leeper-ai
Copy link

@reesercollins thanks for the fix -- what's the ETA for getting this merged? We have some users blocked on this issue. Thanks!

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michael-s-molina michael-s-molina merged commit f910958 into apache:master Jul 6, 2022
@reesercollins reesercollins deleted the fix/CLDN-1482 branch July 6, 2022 14:42
michael-s-molina pushed a commit that referenced this pull request Jul 6, 2022
* fix: Allow dataset owners to explore their datasets

* Re-order imports

* Give owners security manager permissions to their datasets

* Update test suite

* Add SqlaTable to is_owner types

* Add owners to datasource mock

* Fix VSCode import error

* Fix merge error
john-bodley added a commit that referenced this pull request Jul 6, 2022
codyml pushed a commit to codyml/superset that referenced this pull request Jul 7, 2022
* fix: Allow dataset owners to explore their datasets

* Re-order imports

* Give owners security manager permissions to their datasets

* Update test suite

* Add SqlaTable to is_owner types

* Add owners to datasource mock

* Fix VSCode import error

* Fix merge error
akshatsri pushed a commit to charan1314/superset that referenced this pull request Jul 19, 2022
* fix: Allow dataset owners to explore their datasets

* Re-order imports

* Give owners security manager permissions to their datasets

* Update test suite

* Add SqlaTable to is_owner types

* Add owners to datasource mock

* Fix VSCode import error

* Fix merge error
@mistercrunch mistercrunch added 🍒 2.0.0 🍒 2.0.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M v2.0 v2.0.1 🍒 2.0.0 🍒 2.0.1 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants