Bug description

Bug description Filters are not being imported when a dashboard is exported from one instance and imported in another instance. I have tried to create a basic dashboard which displays the count of rows in a table. I created a filter which is backed by a dataset that has number 1 to 10(using recursive query). I created this dashboard in one instance, exported the dashboard and imported it another instance. The import did not throw any error, but I don't see the filter being loaded. I have seen other variations of this issue where the dataset that is used by a chart does not get imported or points to some other dataset in the destination instance. I don't have the exact steps to reproduce those scenarios, but could be related to the issue described here.

Screenshots/recordings Screenshot 2024-12-09 at 2 37 31 PM

Superset version 4.1.0

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.

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.

Comment From: dosubot[bot]

Hey @debggr! I'm here to help you with any bugs, questions, or contributions you have for the project while you wait for a human maintainer. Let's squash those bugs together!

I found a similar unsolved discussion regarding the issue of releasing dashboards to a production environment, which might be related to your problem with filters not being imported during the export-import process. You can check it out here [1].

Unfortunately, I couldn't find specific information about known issues or limitations with the export-import feature in Superset version 4.1.0 related to filters. It might be helpful to review recent changes to the export-import functionality, as there have been several fixes and updates, such as improvements in chart and dashboard import validation [2][3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

Comment From: rusackas

Pinging @yousoph on this one since she was taking stock of what is/isn't included properly in import/export

Comment From: lxrvan

@rusackas Hi! Also a question on this issue: what decision was made regarding inclusion in import/export?

Comment From: rusackas

The import/export mechanisms simply predate the filters... it was just another thing to add. That said, they ARE included in export/import now, so I'll close this as completed. Happy to revisit if needed.