Skip to content

Follow-up to #38702: drop a late linked-task load after the user picks a task - #38720

Merged
karthicksharan merged 1 commit into
feat/lifecycle-exitsfrom
ui-polish/lifecycle-linked-task-guard
Nov 25, 2026
Merged

karthicksharan merged 1 commit into
feat/lifecycle-exitsfrom
ui-polish/lifecycle-linked-task-guard

Conversation

@karthicksharan

Copy link
Copy Markdown

Describe your changes:

Follow-up to #38702 (part of #37901), merging into feat/lifecycle-exits, not main.

Fixes the gitar-bot finding on TaskListV1.component.tsx in #38702. When View Request links to a task that isn't on the loaded page, the list fetches it by id. That late response could replace a task the user had picked in the meantime, or fire after the list unmounted.

  • A load in flight is recorded in a ref. It is cleared when the user picks a task (cards now go through handleTaskPick) or when the list unmounts.
  • The response and the fallback both check that ref before calling onTaskClick, so a stale result is dropped.

Type of change:

  • Bug fix

Tests:

  • TaskListV1.component.test.tsx: added 2 cases, "drops a late linked task once the user has picked another" and "drops a linked task that arrives after the list has gone". Both fail without the fix and pass with it. The file now has 9 passing tests.
  • Jest across ActivityFeed and EntityStatusBadge: 328 passed.
  • ESLint, Prettier and tsc are clean on changed files.
  • Backend: not applicable.

🤖 Generated with Claude Code

@karthicksharan
karthicksharan requested a review from a team as a code owner November 25, 2026 15:25
@karthicksharan
karthicksharan requested review from harsh-vador and removed request for a team November 25, 2026 15:25
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@karthicksharan
karthicksharan merged commit 2129d92 into feat/lifecycle-exits Nov 25, 2026
25 of 28 checks passed
@karthicksharan
karthicksharan deleted the ui-polish/lifecycle-linked-task-guard branch November 25, 2026 15:25
@github-actions

Copy link
Copy Markdown
Contributor

UI browser tests

Ran: all test files (no impact map from main yet)

Result: ✅ 1070 passed · 154 skipped

Changed code executed by these browser tests: 0 / 15 lines (0%)

File Changed lines Executed %
src/components/ActivityFeed/ActivityFeedList/TaskListV1.component.tsx 15 0 0%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant