eschutho commented on a change in pull request #19051:
URL: https://github.com/apache/superset/pull/19051#discussion_r840806857
##########
File path: superset/databases/filters.py
##########
@@ -51,3 +57,38 @@ def apply(self, query: Query, value: Any) -> Query:
),
)
)
+
+
+class DatabaseUploadEnabledFilter(BaseFilter): # pylint:
disable=too-few-public-methods
+ """
+ Custom filter for the GET list that filters all certified charts
+ """
+
+ name = _("Upload Enabled")
+ arg_name = "upload_is_enabled"
+ model = Database
+
+ def apply(self, query: Query, value: any) -> Query:
+ extra_allowed_databases = []
Review comment:
since we don't use this again, you can remove it and just return
```
app.config["ALLOWED_USER_CSV_SCHEMA_FUNC"](
Database, g.user
)
```
on line 74
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]