ENG-2229 Add a source_path column to FileReference - #1390
Open
maparent wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Updates to Preview Branch (eng-2229-add-a-filename-column-to-filereference) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
maparent
force-pushed
the
eng-2229-add-a-filename-column-to-filereference
branch
from
September 3, 2026 13:20
5de67e6 to
f86f5ee
Compare
maparent
force-pushed
the
eng-2229-add-a-filename-column-to-filereference
branch
from
September 3, 2026 13:53
f86f5ee to
d76bd3f
Compare
maparent
force-pushed
the
eng-2229-add-a-filename-column-to-filereference
branch
from
September 4, 2026 18:22
d76bd3f to
20f5362
Compare
filename column to FileReferencesource_path column to FileReference
maparent
force-pushed
the
eng-2229-add-a-filename-column-to-filereference
branch
from
September 6, 2026 22:32
20f5362 to
a34e4cc
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
As defined in linear.
Renamed filename to source_path, since it did not land, and it's closer to the conceptual name.
Verification
Claude generated tests against a mock database; may or may not be valuable.
I don't think this small change warrants an integration test.
Loom video
https://www.loom.com/share/312cdf5d3bd74e1497ee82f9a5c3e673
Scope check
$scope-checkagainst the ENG ticket and final diff.Done When: NoneLocal delegated full review
$dg-delegated-full-reviewwhen no other full-review workflow is available.What I did
Findings
packages/database/supabase/schemas/assets.sql:5 — low, forward-looking. filename is an unconstrained character varying written by any editor in a space and read by importers in other spaces, and its comment explicitly invites destinations to "name an imported asset" with it. importNodes.ts writes downloaded assets into the vault at paths it builds itself; the first consumer that uses filename for that path inherits a traversal/overwrite hazard from a value that crosses a trust boundary unchecked. No consumer exists in this diff, so nothing misbehaves today — worth a CHECK rejecting path separators, or a note on the ticket that sanitising is the reader's job.
My opinion: that's barely worth a comment.
Everything else in the diff checks out: the view replacement is order-safe, RLS/policies/GC triggers are untouched, the timestamp orders correctly after 20260819023727, ADD COLUMN IF NOT EXISTS is idempotent, the comment is duplicated into both schema and migration per project convention, and both Obsidian call sites still compile and behave identically (select("*") on the view just gains a field).
https://linear.app/discourse-graphs/issue/ENG-2229/add-a-filename-column-to-filereference