Skip to content

Make filters param optional and fix typing#44226

Merged
dstandish merged 1 commit intoapache:mainfrom
astronomer:make-filters-optional
Nov 21, 2024
Merged

Make filters param optional and fix typing#44226
dstandish merged 1 commit intoapache:mainfrom
astronomer:make-filters-optional

Conversation

@dstandish
Copy link
Contributor

Given that sometimes we don't want to apply any filters, it makes sense to make the param optional. I also fix the typing on paginated_select.

@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Nov 20, 2024
@dstandish dstandish force-pushed the make-filters-optional branch from 2b3838f to 697edf0 Compare November 20, 2024 20:56
Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good besides changing the var name in list comprehension to x, but I think it's more like a personal taste 🤔

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, just one question

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No major comments, just found the newer version with for x in event_logs or for x in assets etc less readable.

@dstandish dstandish force-pushed the make-filters-optional branch from 68c3458 to 91190fd Compare November 21, 2024 20:49
Given that sometimes we don't want to apply any filters, it makes sense to make the param optional.  I also fix the typing on `paginated_select`.
@dstandish dstandish force-pushed the make-filters-optional branch from 91190fd to a52a6d4 Compare November 21, 2024 20:50
@dstandish dstandish merged commit 22d1406 into apache:main Nov 21, 2024
@dstandish dstandish deleted the make-filters-optional branch November 21, 2024 21:10
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
Given that sometimes we don't want to apply any filters, it makes sense to make the param optional.  I also fix the typing on `paginated_select`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Scheduler including HA (high availability) scheduler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants