Skip to content

fix: re-parse builder query after switching index - #77

Merged
ytkimirti merged 8 commits into
masterfrom
DX-3147-builder-sync
Nov 24, 2026
Merged

ytkimirti merged 8 commits into
masterfrom
DX-3147-builder-sync

Conversation

@ytkimirti

@ytkimirti ytkimirti commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

After switching the index, the Query Builder kept showing the previous index's conditions because a one-shot isOurUpdate flag could stay stuck after a no-op write; own writes are now recognized by comparing against the last synced query string.
If the stored query can't be parsed (invalid syntax, a non-object, $must with $should), the builder shows no tree, writes nothing and switches back to the Code Editor with the error, so it never overwrites a query with another one's conditions.
Part of DX-3147

@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-redis-browser Ready Ready Preview Nov 17, 2026 4:02pm UTC

Request Review

@linear-code

linear-code Bot commented Oct 14, 2026

Copy link
Copy Markdown

DX-3147

@ytkimirti
ytkimirti marked this pull request as ready for review October 28, 2026 07:55
@ytkimirti
ytkimirti added this pull request to stack #118 October 28, 2026 07:55
@ytkimirti
ytkimirti merged commit 68bef36 into master Nov 24, 2026
5 checks passed
@ytkimirti
ytkimirti deleted the DX-3147-builder-sync branch November 24, 2026 10:13

This branch was successfully deployed

1 active deployment
Preview — bbcb3bcc Deployed Nov 17, 2026 by vercel[bot]
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.

2 participants