rmfrall commented on issue #77591:
URL: https://github.com/apache/airflow/issues/77591#issuecomment-7241272921

   Thanks for the clear report. While triaging the three open PRs against 
`main`:
   
   All three apply the same fix — truthiness → `is not None` in both `to_orm` 
implementations (the `range.py` diff is byte-identical), which brings `to_orm` 
back in line with what `is_active()` already checks. So the merge decision 
mainly comes down to test coverage, and the three differ meaningfully there:
   
   - #77605 is the most complete: it covers both filter classes, goes through 
the `int`/`float` factory functions (which is how every route actually builds 
these filters), exercises SQLite row filtering including NULL rows, and adds a 
route-level regression for `max_active_runs_lte=0`. It's also the only one 
carrying `Closes: #77591` for auto-close.
   - #77597 has the most behavior-faithful unit test (real in-memory SQLite, 
asserts actual returned row values, and is the only one covering the combined 
`lower_bound_gte=0.0 + upper_bound_lte=0.0` case), but it only covers the 
`RangeFilter` base class — neither the `NullableDatetimeRangeFilter` override 
nor the factory path.
   - #77629 is the smallest diff with a clean parametrization over bound kind 
and column type, but only asserts compiled SQL text, and likewise doesn't cover 
`NullableDatetimeRangeFilter` or the factories. It is also still marked as 
draft, for whoever is comparing the three.
   
   One observation for whoever merges: the `NullableDatetimeRangeFilter.to_orm` 
change is defensive consistency only. Its bounds always come from the datetime 
factories, which parse query strings through `_safe_parse_datetime_optional`, 
so a zero bound can never reach that class from a real request (cf. the 
`int`/`float` factories where 0 is a legitimate value). Including it is fine 
and keeps the two methods symmetric, but it's worth knowing when reading the 
tests — e.g. passing `0` to the datetime variant exercises a path the API can't 
actually produce.


-- 
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]

Reply via email to