ENG-1711 Reciprocal stored relations not updating after being added#1146
ENG-1711 Reciprocal stored relations not updating after being added#1146trangdoan982 wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Trigger targeted discourse-context refreshes for affected source/destination UIDs after create/delete so mounted views update immediately, while preserving cached behavior for passive loads. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@trangdoan982 The ticket's title is "reciprocal stored relations not updating after being added" and the videos seem to reflect that as well, but the PR title and body says "Guard matchDiscourseNode when specification is missing". Could you clarify how "guard matchDiscourseNode when specification is missing" is related to "reciprocal stored relations not updating after being added"? |
|
@mdroidian yes I updated. My bad it was the title from the first commit that I forgot to update |
@trangdoan982 I see the related commit is still there. If it is no longer relevant to the ticket/PR, please remove it (and add it to a separate ticket if it is fixing a separate problem). If it is relevant, please explain how it is relevant and what tests have been done to ensure this change is not causing any regression. |
Bug analysis:
https://www.loom.com/share/90f39d46cf4b49cf94c47ebb98645ba3
Bug fix test:
https://www.loom.com/share/1dbd7a00ab224f79903ee7e2af945e1a
Summary
matchDiscourseNodeagainst missing or malformedspecificationvalues to avoid discourse context query crashes.ignoreCache: truefor mutation-triggered refreshes while keeping passive/default loads cached.Why
Reciprocal stored relations could appear stale in open discourse context UI (especially across sidebar/main workflows) because mutation outcomes were not consistently propagating to mounted context views. This keeps default cached behavior intact and applies cache bypass only where mutation freshness is required.
Test plan
has titlespecification matching and nodes with missing specifications.Made with Cursor