Skip to content

[2.1] Fixes #38373: invalidate about-entity cache after a task transition (backport 2.1 #38409) - #38426

Merged
harsh-vador merged 2 commits into
2.1from
fix/inbox-incident-timeline-refresh-2.1
Nov 23, 2026
Merged

harsh-vador merged 2 commits into
2.1from
fix/inbox-incident-timeline-refresh-2.1

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #38373

Backport of #38409 to 2.1. After an Ack/Assign/Resolve from the Inbox task panel, the cached about-entity query is invalidated, so the incident activity timeline shows the new status without closing the panel.

The commits are cherry-picked from #38409 with -x and applied cleanly onto origin/2.1; the touched files are identical on main and 2.1, so the diff is the same. Kept as a draft until #38409 merges on main; if review changes #38409, this branch picks up the same changes.

Type of change:

  • Bug fix

Tests:

Unit tests

  • On this branch: yarn test TaskDetailPanel.test.tsx TaskDetailPanel.cache.test.tsx → 118 passed.
  • ESLint and Prettier on the changed files: clean.
  • tsc --noEmit: no new errors (the 3 it reports, in ExploreSortDropdown.tsx and OMSelectWidget.tsx, are on origin/2.1 too).

Backend integration tests

  • Not applicable (no backend changes).

Playwright (UI) tests

Checklist:

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Refreshes the Inbox task’s cached asset details after a successful transition so the incident timeline can show the new event without reopening the panel.

  • The task panel refreshes incident status history after a successful action.

Diagram

sequenceDiagram
    participant User
    participant Panel as TaskDetailPanel
    participant Server
    participant Cache as About query
    participant Timeline as TaskActivityTimeline
    User->>Panel: Apply transition
    Panel->>Server: resolveTask
    Server-->>Panel: Success
    Panel->>Cache: Invalidate cached details
    Cache->>Server: Fetch incident history
    Server-->>Cache: Updated history
    Cache-->>Timeline: Show updated events
Loading

Reviews (1) · Last reviewed commit: "test(inbox): assert refreshed incident h..." · Reviewed by Greptile

detail-app Bot added 2 commits November 23, 2026 10:56
Address review feedback on TaskDetailPanel.cache.test.tsx: keep the
real TaskActivityTimeline instead of mocking it, and assert the
acknowledgment event renders after the ack transition — so the test
fails if the panel stops passing the refetched incident status history
to the timeline, not just if the cache wiring changes.

(cherry picked from commit c622089)
@harsh-vador
harsh-vador marked this pull request as ready for review November 23, 2026 05:34
@harsh-vador
harsh-vador requested a review from a team as a code owner November 23, 2026 05:34
@harsh-vador
harsh-vador requested review from shah-harshit and removed request for a team November 23, 2026 05:34
@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Nov 23, 2026
@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.

@harsh-vador
harsh-vador merged commit 92998b9 into 2.1 Nov 23, 2026
82 of 87 checks passed
@harsh-vador
harsh-vador deleted the fix/inbox-incident-timeline-refresh-2.1 branch November 23, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants