Option to Specify Which Tab of a Dashboard to Send in Apache Superset Reports #30303
Replies: 2 comments 1 reply
-
Yes, it is possible to specify which tab of a multi-tab dashboard is included when sending reports in Apache Superset. This is done through the Here is the relevant code snippet: def _validate_report_extra(self, exceptions: list[ValidationError]) -> None:
extra: Optional[ReportScheduleExtra] = self._properties.get("extra")
dashboard = self._properties.get("dashboard")
if extra is None or dashboard is None:
return
dashboard_state = extra.get("dashboard")
if not dashboard_state:
return
position_data = json.loads(dashboard.position_json or "{}")
active_tabs = dashboard_state.get("activeTabs") or []
anchor = dashboard_state.get("anchor")
invalid_tab_ids = set(active_tabs) - set(position_data.keys())
if anchor and anchor not in position_data:
invalid_tab_ids.add(anchor)
if invalid_tab_ids:
exceptions.append(
ValidationError(
_("Invalid tab ids: %s(tab_ids)", tab_ids=str(invalid_tab_ids)),
"extra",
)
) This code validates the For more detailed examples, you can refer to the integration tests for dashboard reports with tabs, which demonstrate how to create a report schedule with specific active tabs and validate the generated permalink and email notifications [2][3]. |
Beta Was this translation helpful? Give feedback.
-
@dosu How should I proceed if I want all the tabs of my dashboard to be included when sending a report via email? I have tried setting the feature flag "ALERT_REPORT_TABS": True, but it still only sends the first tab. Are there additional configurations needed, or is there a specific way to set up the report schedule to achieve this? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a question about the behavior of reports in Apache Superset when dealing with dashboards that have multiple tabs.
Does anyone know if it is possible to specify which tab of a multi-tab dashboard is included when sending reports? Currently, it seems that only the first tab (which is the default one that opens) is sent in the report.
I have tried adding the following feature flag
"ALERT_REPORT_TABS": True
, but it still only sends the first tab.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions