uranusjr commented on code in PR #63624:
URL: https://github.com/apache/airflow/pull/63624#discussion_r2973660703
##########
airflow-core/src/airflow/api_fastapi/common/parameters.py:
##########
@@ -785,6 +787,46 @@ def depends(
QueryAssetDependencyFilter = Annotated[_AssetDependencyFilter,
Depends(_AssetDependencyFilter.depends)]
+class _ConsumingAssetFilter(BaseParam[str | None]):
+ """Filter DAG runs by consuming asset (name or URI)."""
+
+ def to_orm(self, select: Select) -> Select:
+ if self.value is None and self.skip_none:
Review Comment:
```suggestion
if not self.value and self.skip_none:
```
Since an empty string should probably also be skipped?
--
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]