Fix pending partition run lookups for slash keys and duplicate rows - #69700
Merged
Conversation
Slash-containing partition keys 404'd on the pending-partition-run detail view, duplicate pending rows crashed it with a 500, and many-to-one non-rollup mappers over-reported progress compared to the list view. This fixes all three so partition progress in the UI is accurate and doesn't error out.
Lee-W
requested review from
bbovenzi,
bugraoz93,
choo121600,
ephraimbuddy,
guan404ming,
henry3260,
jason810496,
pierrejeambrun,
rawwar,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
July 10, 2026 10:45
bbovenzi
approved these changes
Jul 13, 2026
Lee-W
added a commit
that referenced
this pull request
Jul 14, 2026
joshuabvarghese
pushed a commit
to joshuabvarghese/airflow
that referenced
this pull request
Jul 16, 2026
…pache#69700) Slash-containing partition keys 404'd on the pending-partition-run detail view, duplicate pending rows crashed it with a 500, and many-to-one non-rollup mappers over-reported progress compared to the list view. This fixes all three so partition progress in the UI is accurate and doesn't error out.
vatsrahul1001
pushed a commit
that referenced
this pull request
Aug 5, 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
/returned 404 on the detail endpoint — the key was carried as a path segment, so the slash was interpreted as a route separator.AssetPartitionDagRunrows crashed the detail endpoint with a 500 (MultipleResultsFoundfrom.one_or_none()).What
partition_keyfrom a path segment to a query parameter on the detail endpoint, so slash-containing keys round-trip correctly.order_by(id.desc()).limit(1)instead of.one_or_none(), matching the existing_get behavior inassets/manager.py` and the model docstring._compute_received_count.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.