Skip to content

ENG-1663: Error in create-block while changing the discourse node specification setting.#982

Merged
sid597 merged 1 commit intomigration-block-init-staging-branchfrom
eng-1663-error-in-create-block-while-changing-the-discourse-node
Apr 24, 2026
Merged

ENG-1663: Error in create-block while changing the discourse node specification setting.#982
sid597 merged 1 commit intomigration-block-init-staging-branchfrom
eng-1663-error-in-create-block-while-changing-the-discourse-node

Conversation

@sid597
Copy link
Copy Markdown
Collaborator

@sid597 sid597 commented Apr 22, 2026

…dren

Legacy tree init was calling getSubTree with parentUid, which fires
createBlock without awaiting. Subsequent createBlock calls under those
uids raced Roam's async write and failed with 'Parent entity doesn't
exist'. Replace the three fire-and-forget lookups with tree-mode
getSubTree + awaited createBlock fallback.
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Apr 22, 2026

@supabase
Copy link
Copy Markdown

supabase Bot commented Apr 22, 2026

This pull request has been ignored for the connected project zytfjzqyijgagqxrzbmz because there are no changes detected in packages/database/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@sid597 sid597 merged commit d173c8e into migration-block-init-staging-branch Apr 24, 2026
9 checks passed
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