ogulcanaydogan commented on issue #50102:
URL: https://github.com/apache/airflow/issues/50102#issuecomment-4088285602

   Hi! I noticed that `run_on_latest_version` was added in #52177 and its 
default was fixed to `True` in #59304, which partially addresses this — users 
can now choose between the latest version and the original version when running 
backfill.
   
   However, the remaining scope seems to be **specific version selection**: 
letting users pick an arbitrary `dag_version_id` rather than just toggling 
between latest and original. Currently, `_create_backfill()` in 
`airflow-core/src/airflow/models/backfill.py` only accepts a boolean 
`run_on_latest_version`, and the `Backfill` model has no `dag_version_id` 
column.
   
   A potential approach:
   1. Add an optional `dag_version_id` parameter to `_create_backfill()` (when 
provided, use that specific version instead of latest/original)
   2. Add a `dag_version_id` field to the API's `BackfillPostBody`
   3. Add `--dag-version-id` CLI argument
   4. Add a version selector in the UI's `RunBackfillForm` (using the existing 
`DagVersionService`)
   
   Is this the right remaining scope, or has this been fully addressed by the 
`run_on_latest_version` work? Happy to work on a PR if specific version 
selection is still wanted. cc @aritra24 @dstandish


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