Skip to content

UI: Show partition preview in backfill form for partitioned Dags - #68884

Merged
bbovenzi merged 1 commit into
apache:mainfrom
astronomer:backfill-ui-partition-preview
Aug 24, 2026
Merged

bbovenzi merged 1 commit into
apache:mainfrom
astronomer:backfill-ui-partition-preview

Conversation

@Lee-W

@Lee-W Lee-W commented Jun 23, 2026 •

Copy link
Copy Markdown
Member

Why

The backfill form was purely date-range oriented and the dry-run preview showed only a count, so users backfilling a partitioned Dag could not see which partitions the run would actually cover.

This is especially important for partitioned Dags, since a downstream Dag waiting on partitions from multiple assets needs to wait for the same partition value across all of them. Being able to see which partition keys are generated could help users avoid running incorrect or unnecessary backfills that would otherwise fail to trigger the downstream Dags as expected.

What

The form now switches to partition wording for partitioned Dags and the preview lists the affected partition keys one per line (capped, with an "and N more" summary), falling back to the existing count message for non-partitioned Dags. Partition keys are long enough that a comma-separated single line is unreadable, so the list is laid out vertically. An empty range shows a "no partitions" message and keeps the Run button disabled, matching the backend's friendly empty-window behaviour.

Before

image

This doesn't give us enough information about which partition keys are going to be generated. Instead, it relies on users to work them out manually.

After

image
Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: [Claude] following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@Lee-W
Lee-W force-pushed the backfill-ui-partition-preview branch from 1158cb1 to 1180477 Compare June 26, 2026 10:31
@Lee-W
Lee-W force-pushed the backfill-ui-partition-preview branch from 1180477 to 3170d08 Compare July 10, 2026 09:35
@Lee-W
Lee-W force-pushed the backfill-ui-partition-preview branch from 3170d08 to 70207d8 Compare July 31, 2026 04:55
@Lee-W
Lee-W force-pushed the backfill-ui-partition-preview branch 3 times, most recently from ff35adf to 56068d8 Compare August 18, 2026 13:10
@Lee-W
Lee-W marked this pull request as ready for review August 18, 2026 13:16
@bbovenzi

Copy link
Copy Markdown
Contributor

What is the goal here? I'm struggling to understand why seeing 200 date strings helps me understand what is going on.

@Lee-W
Lee-W force-pushed the backfill-ui-partition-preview branch from 56068d8 to 68f4108 Compare August 19, 2026 08:31
@Lee-W

Lee-W commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

The goal is to show the expected partition keys generated by the producer Dag. This is especially important for partitioned Dags, since a downstream consumer Dag needs to wait for the exact same partition key value from different assets before it can be triggered.

200+ partition keys is probably not the best example 😅, but I also wanted to show how the "more" behavior works.

@Lee-W
Lee-W force-pushed the backfill-ui-partition-preview branch 3 times, most recently from c6c3373 to 7b339a8 Compare August 21, 2026 06:27
@bbovenzi

Copy link
Copy Markdown
Contributor

Limited Items list wasn't really planned to fit hundreds of possible entries. We should use a paginated table just like we have for Clearing a Task Instance.

The backfill form was purely date-range oriented and the dry-run preview
showed only a count, so users backfilling a partitioned Dag could not see
which partitions the run would actually cover. The form now switches to
partition wording for partitioned Dags and the preview lists the affected
partition keys one per line (capped, with an "and N more" summary), falling
back to the existing count message for non-partitioned Dags. Partition keys
are long enough that a comma-separated single line is unreadable, so the
list is laid out vertically. An empty range shows a "no partitions" message
and keeps the Run button disabled, matching the backend's friendly
empty-window behaviour.
@Lee-W
Lee-W force-pushed the backfill-ui-partition-preview branch from 7b339a8 to 21d6540 Compare August 23, 2026 22:30
@Lee-W

Lee-W commented Aug 24, 2026

Copy link
Copy Markdown
Member Author

Sounds good! just updated. also upgrade the screenshot in the issue description

@bbovenzi bbovenzi added this to the Airflow 3.4.0 milestone Aug 24, 2026
@bbovenzi
bbovenzi merged commit c081c55 into apache:main Aug 24, 2026
89 checks passed
@bbovenzi
bbovenzi deleted the backfill-ui-partition-preview branch August 24, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants