pierrejeambrun commented on code in PR #43783:
URL: https://github.com/apache/airflow/pull/43783#discussion_r1834504122
##########
airflow/api_fastapi/common/parameters.py:
##########
@@ -406,6 +407,37 @@ def depends(self, dag_id: str | None = None) ->
_DagIdFilter:
return self.set_value(dag_id)
+class _UriPatternSearch(_SearchParam):
+ """Search on uri."""
+
+ def __init__(self, skip_none: bool = True) -> None:
+ super().__init__(AssetModel.uri, skip_none)
+
+ def depends(self, uri_pattern: str | None = None) -> _UriPatternSearch:
+ return self.set_value(uri_pattern)
+
+
+class _DagIdAssetReferencePatternSearch(_SearchParam):
Review Comment:
I don't think this should be called `Search` or Extend `_SearchParam`. It
does not use anything from the Search, (no text matching, ilike etc..).
It's more a `Filter` to me.
--
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]