fix(dashboard): preserve last-known PR enrichment when backfill fails - #140
Merged
wgordon17 merged 2 commits intoAug 26, 2026
Merged
Conversation
wgordon17
marked this pull request as ready for review
August 26, 2026 19:47
Poll cycles fully replaced the PR list each cycle, so a transient enrichment-backfill failure (network blocker, blip, or GitHub hiccup) wiped size/check-status data and reclassified dependency PRs from Mergeable to Needs Action until the next successful poll. Add fallbackToPreviousEnrichment to carry forward a PR's prior enriched fields when the current cycle failed to re-enrich it, and guard the fine-grained merge path against the same regression. Add warn + Sentry telemetry to the backfill catch block to match its sibling fetchers.
Extracts pickEnrichmentFields so mergeEnrichment, fallbackToPreviousEnrichment, and the DashboardPage fine-grained merge share one field list, removing the drift risk that a future enrichment field is added to some copy sites but not others. Adds unit tests covering fallbackToPreviousEnrichment (empty-previous, already-enriched passthrough, missing/unenriched prev, carry-forward, closed-PR drop) and pickEnrichmentFields field selection.
wgordon17
force-pushed
the
fix/pr-enrichment-fallback
branch
from
August 26, 2026 19:47
c99db31 to
f901a00
Compare
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.
Summary