diff --git a/superset/reports/api.py b/superset/reports/api.py index ccbda74b1f2c..03d72bc6fab7 100644 --- a/superset/reports/api.py +++ b/superset/reports/api.py @@ -182,6 +182,9 @@ def ensure_alert_reports_enabled(self) -> Optional[Response]: "created_by", "type", "last_state", + "creation_method", + "dashboard_id", + "chart_id", ] search_filters = {"name": [ReportScheduleAllTextFilter]} allowed_rel_fields = {"owners", "chart", "dashboard", "database", "created_by"} diff --git a/tests/integration_tests/reports/api_tests.py b/tests/integration_tests/reports/api_tests.py index 1fe71065f475..06888e98a5a9 100644 --- a/tests/integration_tests/reports/api_tests.py +++ b/tests/integration_tests/reports/api_tests.py @@ -773,7 +773,7 @@ def test_create_report_schedule_relations_exist(self): data = json.loads(rv.data.decode("utf-8")) assert data == {"message": {"dashboard": "Dashboard does not exist"}} - @pytest.mark.usefixtures("load_birth_names_dashboard_with_slices") + # @pytest.mark.usefixtures("load_birth_names_dashboard_with_slices") # TODO (AAfghahi): I am going to enable this when the report schedule feature is fully finished # def test_create_report_schedule_no_creation_method(self): # """