-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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: remove expose #19700
fix: remove expose #19700
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19700 +/- ##
==========================================
- Coverage 66.51% 66.32% -0.19%
==========================================
Files 1686 1686
Lines 64589 64586 -3
Branches 6635 6635
==========================================
- Hits 42959 42835 -124
- Misses 19931 20052 +121
Partials 1699 1699
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
a2a32f9
to
656a1e1
Compare
656a1e1
to
be217fe
Compare
/testenv up |
@yousoph Ephemeral environment spinning up at http://54.214.138.182:8080. Credentials are |
d20b3fa
to
d5ba9b4
Compare
/testenv up |
@yousoph Ephemeral environment spinning up at http://35.161.23.73:8080. Credentials are |
/testenv up |
@AAfghahi Ephemeral environment spinning up at http://35.86.101.99:8080. Credentials are |
70cd797
to
9a31753
Compare
9a31753
to
4bfc546
Compare
Tested PR locally and it worked as expected Screen.Recording.2022-04-15.at.12.08.31.PM.mov |
@@ -69,8 +69,6 @@ class DatabaseUploadEnabledFilter(BaseFilter): # pylint: disable=too-few-public | |||
def apply(self, query: Query, value: Any) -> Query: | |||
filtered_query = query.filter(Database.allow_file_upload) | |||
|
|||
database_perms = security_manager.user_view_menu_names("database_access") | |||
schema_access_databases = can_access_databases("schema_access") |
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.
if I compare this filter to the actual csv file upload validator, the validator checks for
security_manager.can_access_database(database)
and
schema in database.get_schema_access_for_file_upload()
We're covering the latter in lines 74 - 88, and I'm assuming that datasource_access_databases = can_access_databases("datasource_access")
should return the same as the former check in the validator.
Ephemeral environment shutdown and build artifacts deleted. |
* bumping shillelagh * remove expose (cherry picked from commit 57157c8)
🏷️ preset:2022.15 |
* bumping shillelagh * remove expose
SUMMARY
When creating a filter for the Database Filter view we thought that we would have to add individual filters into the search_filter column. But we learned that we don't. This is cleaning that up.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION