You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ms...@apache.org on 2026/03/26 12:30:26 UTC

(superset) branch msyavuz/fix/alert-report-filters-wo-tabs updated: fix: tuple

This is an automated email from the ASF dual-hosted git repository.

msyavuz pushed a commit to branch msyavuz/fix/alert-report-filters-wo-tabs
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/msyavuz/fix/alert-report-filters-wo-tabs by this push:
     new f798d29488e fix: tuple
f798d29488e is described below

commit f798d29488e90be8ce59601425e83792e3a9da28
Author: Mehmet Salih Yavuz <sa...@proton.me>
AuthorDate: Thu Mar 26 15:29:14 2026 +0300

    fix: tuple
---
 superset/commands/report/execute.py              | 6 +++++-
 tests/unit_tests/commands/report/execute_test.py | 4 ++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/superset/commands/report/execute.py b/superset/commands/report/execute.py
index a047647b085..4926c89901e 100644
--- a/superset/commands/report/execute.py
+++ b/superset/commands/report/execute.py
@@ -299,7 +299,11 @@ class BaseReportState:
                 )
             ]
 
-        native_filter_params = self._report_schedule.get_native_filters_params()
+        native_filter_params, filter_warnings = (
+            self._report_schedule.get_native_filters_params()
+        )
+        if filter_warnings:
+            self._filter_warnings.extend(filter_warnings)
         if native_filter_params and native_filter_params != "()":
             return [
                 self._get_tab_url(
diff --git a/tests/unit_tests/commands/report/execute_test.py b/tests/unit_tests/commands/report/execute_test.py
index 925103bf12c..e7a8b81bd98 100644
--- a/tests/unit_tests/commands/report/execute_test.py
+++ b/tests/unit_tests/commands/report/execute_test.py
@@ -441,6 +441,10 @@ def test_get_dashboard_urls_native_filters_without_tabs(
         }
     }
     mock_report_schedule.extra = extra  # type: ignore[assignment]
+    mock_report_schedule.get_native_filters_params.return_value = (  # type: ignore
+        "(NATIVE_FILTER-abc:!(val1))",
+        [],
+    )
 
     mock_dashboard = mocker.MagicMock()
     mock_dashboard.uuid = UUID("12345678-1234-1234-1234-123456789abc")