Skip to content

Commit

Permalink
fix: report list search by created_by (#18725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Guo committed Feb 16, 2022
1 parent b2613f6 commit 59b811a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superset/reports/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def ensure_alert_reports_enabled(self) -> Optional[Response]:
"dashboard": "dashboard_title",
"chart": "slice_name",
"database": "database_name",
"owners": RelatedFieldFilter("first_name", FilterRelatedOwners),
"created_by": RelatedFieldFilter("first_name", FilterRelatedOwners),
}

apispec_parameter_schemas = {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/reports/api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def test_get_related_report_schedule(self):
ReportSchedule Api: Test get releated report schedule
"""
self.login(username="admin")
related_columns = ["owners", "chart", "dashboard", "database"]
related_columns = ["created_by", "chart", "dashboard", "database"]
for related_column in related_columns:
uri = f"api/v1/report/related/{related_column}"
rv = self.client.get(uri)
Expand Down

0 comments on commit 59b811a

Please sign in to comment.