ENG-2215 Give cross-space relation endpoint RIDs the platform subtype in dbToCrossAppConverters - #1437
Open
maparent wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
maparent
force-pushed
the
eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype
branch
from
September 11, 2026 14:47
6df8719 to
6851fb2
Compare
maparent
force-pushed
the
eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype
branch
from
September 11, 2026 15:09
6851fb2 to
c7da3b9
Compare
maparent
force-pushed
the
eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype
branch
from
September 11, 2026 16:05
c7da3b9 to
b1c3224
Compare
maparent
force-pushed
the
eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype
branch
from
September 11, 2026 16:07
b1c3224 to
38e54eb
Compare
… in dbToCrossAppConverters
maparent
force-pushed
the
eng-2215-give-cross-space-relation-endpoint-rids-the-platform-subtype
branch
from
September 11, 2026 16:10
38e54eb to
d48e6cf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reviewer brief
This makes the subtype mandatory in
spaceUriAndLocalIdToRidandfindTargetUid.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
findTargetUidwas added after the video, at the request of the reviewing agent.Scope check
$scope-checkagainst ENG-2215 and the final diff.Done When:subtypebecame a mandatoryObsidianRidSubtypeonspaceUriAndLocalIdToRidand the subtype-less ORN branch was deleted, so every ORN producer is affected, not only relation endpoints;getConceptMapnow selectsis_schema/is_relationand emitsschema/relationsubtypes alongsidenote;buildSharedNodesnow stampsnoteon slot-target rids that previously carried none (sharedNodes.ts:207, with its test updated toorn:obsidian.note:vault-b/node-6), which the ticket lists underOut of Scope.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.Local delegated full review
$dg-delegated-full-reviewwhen 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