fix(keys): Unsafe dict access in get_native_filters_params() crashes execution (#38272)

(cherry picked from commit 89d1b80ce7)
This commit is contained in:
Alexandru Soare
2026-03-24 15:43:27 +02:00
committed by Michael S. Molina
parent a33c2a9c0e
commit 1d170f0da1
5 changed files with 162 additions and 35 deletions

View File

@@ -290,6 +290,10 @@ def test_get_dashboard_urls_with_multiple_tabs(
"urlParams": None,
}
}
mock_report_schedule.get_native_filters_params.return_value = ( # type: ignore
"()",
[],
)
class_instance: BaseReportState = BaseReportState(
mock_report_schedule, "January 1, 2021", "execution_id_example"
@@ -333,6 +337,10 @@ def test_get_dashboard_urls_with_exporting_dashboard_only(
"urlParams": None,
}
}
mock_report_schedule.get_native_filters_params.return_value = ( # type: ignore
"()",
[],
)
mock_run.return_value = "url1"
class_instance: BaseReportState = BaseReportState(