Skip to content

Drill to Detail is not working properly on Charts powered by Jinja Templating #33773

Open
@yousoph

Description

@yousoph

Bug description

Description

Dashboard charts that are powered by Jinja are able to display their data correctly. However, when users try to perform the drill-by action, the result is incorrect.

How to reproduce the bug

  1. By following this guide, create a Jinja-powered dataset with country, status, and product_line columns.
  2. Create a stacked Bar Chart and add it to a dashboard.
  3. Add a filter for the Product Line from the Vehicle Sales dataset.
  4. Ensure that the dashboard shows correct data.
  5. On the stacked Bar Chart, perform a drill to detail by all action.

Expected results

Drill-by results are correct.

Actual results

Drill-by results are incorrect.

Known Workarounds

No workarounds are currently known.

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions