Skip to content

ENG-1791 Obsidian sync does not recover from Concept upsert failure#1070

Merged
maparent merged 6 commits into
mainfrom
eng-1791-obsidian-sync-does-not-recover-from-concept-upsert-failure
Jun 1, 2026
Merged

ENG-1791 Obsidian sync does not recover from Concept upsert failure#1070
maparent merged 6 commits into
mainfrom
eng-1791-obsidian-sync-does-not-recover-from-concept-upsert-failure

Conversation

@maparent

@maparent maparent commented May 22, 2026

Copy link
Copy Markdown
Collaborator

@linear-code

linear-code Bot commented May 22, 2026

Copy link
Copy Markdown

ENG-1791

@supabase

supabase Bot commented May 22, 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 ↗︎.

@maparent maparent requested a review from trangdoan982 May 22, 2026 22:23
@maparent maparent force-pushed the eng-1791-obsidian-sync-does-not-recover-from-concept-upsert-failure branch from 699aa2f to fb2fc57 Compare May 24, 2026 15:35
Comment thread packages/database/src/lib/pagination.ts Outdated
.order("id"),
1000,
);
if (Array.isArray(existingConceptIds)) {

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.

sorry for the late review. i'll approve first to unblock for this particular bug.
but given our latest convos about wrapping upsert_concept and upsert_content in one transaction, I wonder if we should do a more thorough missing check for both concepts and content -> upload whatever is missing. because otherwise we're doing a patch for a bug without being systematic about the root cause.
we can mark it as a clear TODO here for the next step.

context.spaceId,
);
const changedNodes: ObsidianDiscourseNodeData[] = [];
let missing: Set<string> | undefined;

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.

nit: name to missing_concepts for clarify.
we should also add a comment explaining how this address a particular bug

@maparent maparent merged commit cb70908 into main Jun 1, 2026
11 checks passed
@maparent maparent deleted the eng-1791-obsidian-sync-does-not-recover-from-concept-upsert-failure branch June 1, 2026 00:00
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