Skip to content

ENG-2340 Import cross-space relations into Roam - #1524

Merged
maparent merged 1 commit into
mainfrom
eng-2340-import-cross-space-relations-into-roam
Oct 7, 2026
Merged

maparent merged 1 commit into
mainfrom
eng-2340-import-cross-space-relations-into-roam

Conversation

@maparent

@maparent maparent commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

https://entire.io/gh/DiscourseGraphs/discourse-graph/trails/72

Reviewer brief

  • Size: About 610 non-test lines, mostly in two files. Triple matching spans discovery (candidates and the match heuristic) and import (local-first steps), and neither half works alone: discovery stops rewriting Obsidian relations to triples, so import must resolve relation types in the same change. The refresh trigger and dialog fix are small but are what make the matching reachable from refresh.
  • Review entry points: findOrImportRelationTriple in importSharedRelations.ts (steps 1–3), then the relation-type block in discoverSharedRelations.ts. The matching functions are reviewed in ENG-2373 Share the relation triple matching rule in packages/database #1527.
  • Testing path: unit tests for each step, and a guard test that the shared default node type ids match Roam's defaults; the matching heuristic is tested in ENG-2373 Share the relation triple matching rule in packages/database #1527. Loom shows Done When 1, 2 and 4 with a hidden source node type. Done When 3 is unit-tested only.

Loom video

https://www.loom.com/share/3f7bd9edc333439ca1217a86c6e22023

Scope check

Standards check

  • Ran $dg-pr-adherence-check against the final diff and PR metadata.

Local delegated full review

  • Ran a comprehensive review of the entire final diff in a subagent with a fresh context. Use $dg-delegated-full-review when no other full-review workflow is available.

Delegated review found:

  • low (duplicate source RID on a second triple); fixed in the amended commit.
    Then (after rebase) :
  • Medium, a failing schema still stops all relation imports, as before this change; follow-up issue candidate.
  • Low, refresh warned about relations skipped for hidden schemas; fixed.
  • Low, renaming a triple created without source identity duplicates it once; accepted, follows from the no-identity rule.

https://linear.app/discourse-graphs/issue/ENG-2340/import-cross-space-relations-into-roam

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
discourse-graph Skipped Skipped Oct 7, 2026 5:44pm UTC

Request Review

@supabase

supabase Bot commented Oct 6, 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 ↗︎.

@linear-code

linear-code Bot commented Oct 6, 2026

Copy link
Copy Markdown

ENG-2340

@maparent
maparent force-pushed the eng-2340-import-cross-space-relations-into-roam branch from 66fa519 to 4db29e6 Compare October 6, 2026 15:45
@maparent
maparent force-pushed the eng-2340-import-cross-space-relations-into-roam branch from 4db29e6 to ae4009a Compare October 6, 2026 16:10
@maparent
maparent requested a review from mdroidian October 6, 2026 16:28
@maparent
maparent marked this pull request as ready for review October 6, 2026 16:29

@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 3 potential issues.

Devin Review

Comment thread apps/roam/src/utils/discoverSharedRelations.ts Outdated
Comment thread apps/roam/src/components/DiscoverSharedNodesDialog.tsx Outdated
Comment thread apps/roam/src/utils/discoverSharedRelations.ts Outdated
@maparent
maparent removed the request for review from mdroidian October 6, 2026 16:32
@maparent
maparent force-pushed the eng-2340-import-cross-space-relations-into-roam branch from fd6694c to 8e47234 Compare October 6, 2026 16:46
@maparent
maparent force-pushed the eng-2340-import-cross-space-relations-into-roam branch from 8e47234 to cc77c53 Compare October 6, 2026 16:48
@maparent
maparent requested review from mdroidian and removed request for mdroidian October 6, 2026 16:49
@maparent
maparent marked this pull request as draft October 7, 2026 04:12
@maparent
maparent force-pushed the eng-2340-import-cross-space-relations-into-roam branch from cc77c53 to 3f418c5 Compare October 7, 2026 04:16
@maparent
maparent changed the base branch from main to eng-2373-share-the-relation-triple-matching-rule-in-packagesdatabase October 7, 2026 04:16
@maparent
maparent force-pushed the eng-2373-share-the-relation-triple-matching-rule-in-packagesdatabase branch from 5d1b689 to fc32c8c Compare October 7, 2026 04:33
@maparent
maparent force-pushed the eng-2340-import-cross-space-relations-into-roam branch from 3f418c5 to 6a69fcd Compare October 7, 2026 04:35
@maparent
maparent force-pushed the eng-2340-import-cross-space-relations-into-roam branch from 6a69fcd to 5d94b7b Compare October 7, 2026 04:54
@maparent
maparent marked this pull request as ready for review October 7, 2026 04:55
@maparent
maparent force-pushed the eng-2340-import-cross-space-relations-into-roam branch from 5d94b7b to bd1fed7 Compare October 7, 2026 05:02
Base automatically changed from eng-2373-share-the-relation-triple-matching-rule-in-packagesdatabase to main October 7, 2026 17:02
@maparent
maparent force-pushed the eng-2340-import-cross-space-relations-into-roam branch from bd1fed7 to e1335a7 Compare October 7, 2026 17:33
@maparent
maparent force-pushed the eng-2340-import-cross-space-relations-into-roam branch from e1335a7 to 14093dd Compare October 7, 2026 17:44
@maparent
maparent merged commit b5afb12 into main Oct 7, 2026
11 checks passed
@maparent
maparent deleted the eng-2340-import-cross-space-relations-into-roam branch October 7, 2026 17:46

This branch was previously deployed

1 inactive deployment
Preview — 14093dd3 Deployed Oct 7, 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