-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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: Add user filtering to changed_by. Fixes #27986 #29287
base: master
Are you sure you want to change the base?
Conversation
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.
Adding a link to the PR that introduced this feature for "owner" and "group". |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #29287 +/- ##
===========================================
+ Coverage 60.48% 83.74% +23.25%
===========================================
Files 1931 524 -1407
Lines 76236 37789 -38447
Branches 8568 0 -8568
===========================================
- Hits 46114 31646 -14468
+ Misses 28017 6143 -21874
+ Partials 2105 0 -2105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@dpgaspar : I think I have corrected the formatting. Would be nice if you can start the workflows again. |
CI running 🤞 |
Would love to get some feedback if this PR is considered for merging. Or if I can improve it in some way. |
Updated branch with master to resolve merge conflict |
Updated the "summary" of this PR with a better description and added "testing instructions" |
Running CI again :) |
SUMMARY
The EXTRA_RELATED_QUERY_FILTERS option only affected the "modified by" field, this PR changes it to also apply to the "owner" field.
This option is currently used in a superset installation where a superset user should not be able to list other superset user names. Without this PR a superset user can list the names of other users in the "modified by" field.
Fixes #27986
Documentation of the
EXTRA_RELATED_QUERY_FILTERS
:Example
superset_config.py
with EXTRA_RELATED_QUERY_FILTERS configured to hide all users:BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
![image](https://private-user-images.githubusercontent.com/61765/340589152-1cfb06a8-faaf-4c81-b013-777092ef2721.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExOTYxMDUsIm5iZiI6MTcyMTE5NTgwNSwicGF0aCI6Ii82MTc2NS8zNDA1ODkxNTItMWNmYjA2YTgtZmFhZi00YzgxLWIwMTMtNzc3MDkyZWYyNzIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDA1NTY0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThhMTQzODliODQxYTRlOTliMzU2MWY0YjQwNGEwMDY4ZWU3NTIyZmZmZGYzMjIwNmUwMGYwMzQyMWQ0NmQ3MzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VnFpwgwgYxb3EkRpB8a6-XKaxyoMVQnLljWmNnyYU1Y)
After:
![image](https://private-user-images.githubusercontent.com/61765/340588162-b6ee4039-cbd0-46a4-89bd-0ed52ccee9e3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExOTYxMDUsIm5iZiI6MTcyMTE5NTgwNSwicGF0aCI6Ii82MTc2NS8zNDA1ODgxNjItYjZlZTQwMzktY2JkMC00NmE0LTg5YmQtMGVkNTJjY2VlOWUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDA1NTY0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYwMDFkMTY4NTVlNDA2OTdlYmIxMGI1MmQ1MjYzMGVlYzQ1Mjc5NjQ0YWQzYzgzNzdkZTE5NmE2OGE1YjcwMjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kHNjd7ixkePi3QeUVo9cjIe7do5MZ_-5IAGcmS2pbNY)
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION