feat: add show columns to Reports model (#15712)
* added logic for creation_method * revisions * added index * Update superset/migrations/versions/3317e9248280_add_creation_method_to_reports_model.py * filters * search columns updated
This commit is contained in:
parent
a7cbcde9bf
commit
3a249a0090
|
|
@ -182,6 +182,9 @@ class ReportScheduleRestApi(BaseSupersetModelRestApi):
|
|||
"created_by",
|
||||
"type",
|
||||
"last_state",
|
||||
"creation_method",
|
||||
"dashboard_id",
|
||||
"chart_id",
|
||||
]
|
||||
search_filters = {"name": [ReportScheduleAllTextFilter]}
|
||||
allowed_rel_fields = {"owners", "chart", "dashboard", "database", "created_by"}
|
||||
|
|
|
|||
|
|
@ -773,7 +773,7 @@ class TestReportSchedulesApi(SupersetTestCase):
|
|||
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):
|
||||
# """
|
||||
|
|
|
|||
Loading…
Reference in New Issue