You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/10/10 19:33:22 UTC
[GitHub] [incubator-superset] mistercrunch commented on a change in pull request #11227: style(menu): clean up right menu - leaving only "Settings"
mistercrunch commented on a change in pull request #11227:
URL: https://github.com/apache/incubator-superset/pull/11227#discussion_r502824304
##########
File path: superset/views/utils.py
##########
@@ -351,11 +351,11 @@ def build_extra_filters( # pylint: disable=too-many-locals,too-many-nested-bloc
for filter_id, columns in default_filters.items():
filter_slice = db.session.query(Slice).filter_by(id=filter_id).one_or_none()
- filter_configs = (
- json.loads(filter_slice.params or "{}").get("filter_configs") or []
- if filter_slice
- else []
- )
+ filter_configs: List[Dict[str, Any]] = []
Review comment:
Somehow `mypy` + `pre-commit` were picking up on this, unclear why as i didn't touch the file. Added type annotations here to move forward...
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org