Skip to content

ENG-2215 Give cross-space relation endpoint RIDs the platform subtype in dbToCrossAppConverters - #1437

Open
maparent wants to merge 1 commit into
mainfrom
eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype
Open

ENG-2215 Give cross-space relation endpoint RIDs the platform subtype in dbToCrossAppConverters#1437
maparent wants to merge 1 commit into
mainfrom
eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype

Conversation

@maparent

@maparent maparent commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Reviewer brief

This makes the subtype mandatory in spaceUriAndLocalIdToRid and findTargetUid.
The missing subtypes are added where necessary.
This avoids a discrepancy with the same object having two distinct Rids.
An inconsistent subtype in tests is also corrected.

We also (separate commit, optional) constrain the subtype to known strings.

Verification

Making the parameter mandatory ensures consistency.
Constraining input values is beyond scope and optional, but also makes future mistakes less likely.

Loom video

https://www.loom.com/share/82c15eed4c4d4c45b77d92d6d7d406d2

Note that the loom mentions the second commit, which I since removed by request.
Making the parameter mandatory in findTargetUid was added after the video, at the request of the reviewing agent.

Scope check

  • Ran $scope-check against ENG-2215 and the final diff.
  • Scope beyond Done When: subtype became a mandatory ObsidianRidSubtype on spaceUriAndLocalIdToRid and the subtype-less ORN branch was deleted, so every ORN producer is affected, not only relation endpoints; getConceptMap now selects is_schema/is_relation and emits schema/relation subtypes alongside note; buildSharedNodes now stamps note on slot-target rids that previously carried none (sharedNodes.ts:207, with its test updated to orn:obsidian.note:vault-b/node-6), which the ticket lists under Out of Scope.
  • Required now: Making the subtype mandatory is the fix chosen in place of carrying the platform on spaceMap — it is what stops a third recurrence after ENG-2142, and it forces every call site to be corrected in this change rather than leaving latent subtype-less producers.
  • Anyone affected or consulted: Yes — approach recorded by the assignee on the ticket before implementation.
  • Decision: https://linear.app/discourse-graphs/issue/ENG-2215 (comment, 2026-09-11)

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.

https://linear.app/discourse-graphs/issue/ENG-2215/give-cross-space-relation-endpoint-rids-the-platform-subtype-in

@linear-code

linear-code Bot commented Sep 11, 2026

Copy link
Copy Markdown

ENG-2215

@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
discourse-graph Ready Ready Preview Sep 11, 2026 4:12pm UTC

Request Review

@supabase

supabase Bot commented Sep 11, 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 force-pushed the eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype branch from 6df8719 to 6851fb2 Compare September 11, 2026 14:47
@maparent
maparent requested a review from sid597 September 11, 2026 15:03
@maparent
maparent force-pushed the eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype branch from 6851fb2 to c7da3b9 Compare September 11, 2026 15:09
@maparent
maparent requested review from sid597 and removed request for sid597 September 11, 2026 15:12
@maparent
maparent force-pushed the eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype branch from c7da3b9 to b1c3224 Compare September 11, 2026 16:05
@maparent
maparent force-pushed the eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype branch from b1c3224 to 38e54eb Compare September 11, 2026 16:07
@maparent
maparent force-pushed the eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype branch from 38e54eb to d48e6cf Compare September 11, 2026 16:10
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