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 2021/10/28 10:22:58 UTC
[GitHub] [superset] mbtronics opened a new issue #17267: jinja2 context not working with native filters
mbtronics opened a new issue #17267:
URL: https://github.com/apache/superset/issues/17267
When using filter_values from the jinja2 context in a dataset, the native filters are not available, only old school filter boxes.
Dataset looks like this:
select * from searches
where timestamp_year=2020
and ({% for item in filter_values("search_term") %}description ILIKE '{{ "%" + item + "%" }}'{% if not loop.last %} OR {% endif %}{% endfor %})
This works with a filter box (chart), but not with native dashboard filters.
Tested on this docker image: https://hub.docker.com/layers/apache/superset/latest/images/sha256-ae79a12a6b679dac1472494be6d8e80a384f1b02a6dc146ed7293a802671d58b?context=explore .
If somebody could point where to look for this in the code, I could probably make a merge request for this.
--
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: notifications-unsubscribe@superset.apache.org
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
[GitHub] [superset] mbtronics closed issue #17267: jinja2 context not working with native filters
Posted by GitBox <gi...@apache.org>.
mbtronics closed issue #17267:
URL: https://github.com/apache/superset/issues/17267
--
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: notifications-unsubscribe@superset.apache.org
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
[GitHub] [superset] mbtronics commented on issue #17267: jinja2 context not working with native filters
Posted by GitBox <gi...@apache.org>.
mbtronics commented on issue #17267:
URL: https://github.com/apache/superset/issues/17267#issuecomment-953793287
sorry, my mistake
--
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: notifications-unsubscribe@superset.apache.org
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