Skip to content

PM-5848: Refresh support ticket details after read - #2130

Open
jmgasper wants to merge 1 commit into
devfrom
PM-5848
Open

PM-5848: Refresh support ticket details after read#2130
jmgasper wants to merge 1 commit into
devfrom
PM-5848

Conversation

@jmgasper

Copy link
Copy Markdown
Collaborator

What was broken

After assigning a ticket from the Support ticket list, the detail screen could still show the ticket as unassigned and offer "Assign to me" until the page was refreshed.

Root cause

The asynchronous mark-read completion performed a data-bearing SWR mutation. That mutation could supersede an in-flight detail revalidation and preserve stale pre-assignment data.

What was changed

Changed the post-read cache update to a revalidation-only SWR mutation, ensuring the detail page reloads current server state without invalidating a concurrent assignment refresh.

Any added/updated tests

Updated the TicketDetailPage regression test to verify that completing the mark-read request triggers a zero-argument, revalidation-only mutation.

Validation:

  • yarn test:no-watch --runInBand --testPathPattern=src/apps/support passed: 9 suites and 29 tests.
  • yarn lint passed.
  • yarn run build passed with existing warnings only.
  • Full yarn test:no-watch --runInBand matched untouched origin/dev: 222 suites and 1,080 tests passed; the same 18 suites and 27 tests fail on both branches.

What was broken

After assigning a ticket from the Support ticket list, the detail screen could still show the ticket as unassigned and offer "Assign to me" until the page was refreshed.

Root cause

The asynchronous mark-read completion performed a data-bearing SWR mutation that could supersede an in-flight detail revalidation and preserve stale pre-assignment data.

What was changed

Changed the post-read cache update to a revalidation-only SWR mutation, ensuring the detail page reloads current server state without invalidating a concurrent assignment refresh.

Any added/updated tests

Updated the TicketDetailPage regression test to verify that completing the mark-read request triggers a zero-argument, revalidation-only mutation.
@jmgasper
jmgasper requested a review from kkartunov as a code owner August 12, 2026 06:18
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