msyavuz commented on code in PR #38715:
URL: https://github.com/apache/superset/pull/38715#discussion_r2958774596
##########
superset/daos/report.py:
##########
@@ -98,6 +98,17 @@ def find_by_extra_metadata(slug: str) ->
list[ReportSchedule]:
.all()
)
+ @staticmethod
+ def find_by_native_filter_id(native_filter_id: str) ->
list[ReportSchedule]:
+ """
+ searches extra_json for a filter ID string
+ """
+ return (
+ db.session.query(ReportSchedule)
+ .filter(ReportSchedule.extra_json.like(f"%{native_filter_id}%"))
+ .all()
+ )
Review Comment:
This does the same thing you are fixing
[here](https://github.com/apache/superset/pull/38738).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]