Repository navigation
UI: Show partition preview in backfill form for partitioned Dags - #68884
Merged
Merged
Conversation
Lee-W
force-pushed
the
backfill-ui-partition-preview
branch
from
June 26, 2026 10:31
1158cb1 to
1180477
Compare
Lee-W
force-pushed
the
backfill-ui-partition-preview
branch
from
July 10, 2026 09:35
1180477 to
3170d08
Compare
Lee-W
force-pushed
the
backfill-ui-partition-preview
branch
from
July 31, 2026 04:55
3170d08 to
70207d8
Compare
Lee-W
force-pushed
the
backfill-ui-partition-preview
branch
3 times, most recently
from
August 18, 2026 13:10
ff35adf to
56068d8
Compare
Lee-W
marked this pull request as ready for review
August 18, 2026 13:16
Lee-W
requested review from
bbovenzi,
choo121600,
guan404ming,
henry3260,
jason810496,
pierrejeambrun,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
August 18, 2026 13:16
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
force-pushed
the
backfill-ui-partition-preview
branch
from
August 19, 2026 08:31
56068d8 to
68f4108
Compare
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
force-pushed
the
backfill-ui-partition-preview
branch
3 times, most recently
from
August 21, 2026 06:27
c6c3373 to
7b339a8
Compare
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
force-pushed
the
backfill-ui-partition-preview
branch
from
August 23, 2026 22:30
7b339a8 to
21d6540
Compare
Member
Author
|
Sounds good! just updated. also upgrade the screenshot in the issue description |
bbovenzi
approved these changes
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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
Was generative AI tooling used to co-author this PR?
Generated-by: [Claude] following the guidelines
{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.