Skip to content

Using Drill by in a dashboard doesn't work in columns created with <a> tags #33771

@yousoph

Description

@yousoph

Description

If you create a chart (e.g. Table Chart) with a custom SQL query that has an <a>, the resulting chart can be created and nested in a dashboard and you won’t be able to use the Drill by feature with it because nothing appears.

How to reproduce the bug

  1. Create a Table chart
  2. Use as dimension a column that has a <a> tag applied in the Custom SQL section. It could be something like this '<a href="https://www.google.com/search?q=' || Product_Category || '">' || Product_Category || '</a>'
  3. Save the chart in a dashboard and then use the Drill by feature in that column

Image

Expected results

The prompted window after using Drill by shows you the details of the category

Actual results

The prompted window after using Drill by doesn’t show anything

Image

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

Labels

dashboard:drill-bygood first issueGood first issues for new contributorspreset:bountyIssues that have been selected by Preset and have a bounty attached.preset:bounty:bugBugs that have been selected by Preset and have a bounty attached.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions