Skip to content

ENG-2068 Sync and publish node schemas while publishing nodes - #1249

Merged
maparent merged 3 commits into
mainfrom
eng-2068-sync-and-publish-node-schemas-while-publishing-nodes
Jul 31, 2026
Merged

ENG-2068 Sync and publish node schemas while publishing nodes#1249
maparent merged 3 commits into
mainfrom
eng-2068-sync-and-publish-node-schemas-while-publishing-nodes

Conversation

@maparent

@maparent maparent commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

@linear-code

linear-code Bot commented Jul 26, 2026

Copy link
Copy Markdown

ENG-2068

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
discourse-graph Skipped Skipped Jul 31, 2026 2:06pm

Request Review

@supabase

supabase Bot commented Jul 26, 2026

Copy link
Copy Markdown

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 ↗︎.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 2 additional findings in Devin Review.

Open in Devin Review

Comment thread apps/roam/src/utils/publishNodesToGroups.ts Outdated
Comment thread apps/roam/src/utils/publishNodesToGroups.ts Outdated
Comment thread apps/roam/src/utils/roamToCrossAppConverters.ts Outdated
@maparent
maparent force-pushed the eng-2068-sync-and-publish-node-schemas-while-publishing-nodes branch from eacdc23 to 2f999dc Compare July 27, 2026 01:26
@maparent
maparent force-pushed the eng-2067-refactor-publishnodestogroups-to-avoid-database-access-in branch from ab026af to 05ce8da Compare July 27, 2026 01:27
@maparent
maparent force-pushed the eng-2068-sync-and-publish-node-schemas-while-publishing-nodes branch from 2f999dc to c642663 Compare July 27, 2026 10:27
@maparent
maparent requested review from mdroidian and sid597 July 27, 2026 11:15
@maparent
maparent force-pushed the eng-2067-refactor-publishnodestogroups-to-avoid-database-access-in branch from 4e8d0a4 to 9792f5d Compare July 27, 2026 15:32
@maparent
maparent force-pushed the eng-2068-sync-and-publish-node-schemas-while-publishing-nodes branch from dec5cf5 to 2f1ab86 Compare July 27, 2026 15:32

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f1ab864d6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/roam/src/utils/publishNodesToGroups.ts Outdated
Comment thread apps/roam/src/utils/publishNodesToGroups.ts

@mdroidian mdroidian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See codex comments

Base automatically changed from eng-2067-refactor-publishnodestogroups-to-avoid-database-access-in to main July 31, 2026 13:47
@maparent
maparent force-pushed the eng-2068-sync-and-publish-node-schemas-while-publishing-nodes branch from 2f1ab86 to 9a61a87 Compare July 31, 2026 13:49
@maparent
maparent force-pushed the eng-2068-sync-and-publish-node-schemas-while-publishing-nodes branch from 3d44a71 to 7a69089 Compare July 31, 2026 14:06
@maparent
maparent merged commit 4065436 into main Jul 31, 2026
11 checks passed
@maparent
maparent deleted the eng-2068-sync-and-publish-node-schemas-while-publishing-nodes branch July 31, 2026 14:08
}

result.okGroupIds = groupIds;
result.publishedNodeSchemaUids = [...nodeSchemaUids];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Logic Bug: publishedNodeSchemaUids includes failed schemas

This line assigns ALL node schema UIDs to publishedNodeSchemaUids, including ones that failed to sync (tracked in failedSyncedUids). This is inconsistent with how publishedNodeUids works (line 157), which only includes successfully synced nodes.

Fix: Exclude failed schemas:

result.publishedNodeSchemaUids = [...nodeSchemaUids].filter(
  (uid) => !result.failedSyncedUids.includes(uid)
);
Suggested change
result.publishedNodeSchemaUids = [...nodeSchemaUids];
result.publishedNodeSchemaUids = [...nodeSchemaUids].filter(
(uid) => !result.failedSyncedUids.includes(uid)
);

Spotted by Graphite

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

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