Skip to content

ENG-1864 Define cross-app asset reference contract - #1392

Open
maparent wants to merge 2 commits into
eng-2229-add-a-filename-column-to-filereferencefrom
eng-1864-define-cross-app-asset-reference-contract
Open

ENG-1864 Define cross-app asset reference contract#1392
maparent wants to merge 2 commits into
eng-2229-add-a-filename-column-to-filereferencefrom
eng-1864-define-cross-app-asset-reference-contract

Conversation

@maparent

@maparent maparent commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Reviewer brief

The basic task is in the first commit, as given in the ticket.
The ticket mentions "oversized" assets; this requires defining size limits, which we put in another commit.
We could separate this into another ticket, but thought it's a clear enough prerequisite to fold.
The extra scope is defined in a note in the body of the ticket: asset size caps (both incoming and outgoing.)

Verification

The new reference contract is referenced in examples.
The asset size has tests.

Loom video

https://www.loom.com/share/be97dc663e7c43678eb0f8debc8af35c

Scope check

  • Ran $scope-check against the ENG ticket and final diff.
  • Scope beyond Done When:

The only extra scope is as noted at the end of the ticket .

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-1864/define-cross-app-asset-reference-contract

@linear-code

linear-code Bot commented Sep 3, 2026

Copy link
Copy Markdown

ENG-1864

@supabase

supabase Bot commented Sep 3, 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 ↗︎.

@vercel

vercel Bot commented Sep 3, 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 6, 2026 10:35pm UTC

Request Review

Comment on lines 731 to 733
new Notice(
`Asset file ${attachment.path} is larger than 6Mb and will not be uploaded`,
);

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.

The error message is inconsistent with the actual check. The code rejects assets when size >= 6MB (inclusive), but the message says "larger than 6Mb" (exclusive). A user with exactly a 6MB file will see this misleading message.

Fix:

new Notice(
  `Asset file ${attachment.path} is 6MB or larger and will not be uploaded`,
);
Suggested change
new Notice(
`Asset file ${attachment.path} is larger than 6Mb and will not be uploaded`,
);
new Notice(
`Asset file ${attachment.path} is 6MB or larger and will not be uploaded`,
);

Spotted by Graphite

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@maparent
maparent force-pushed the eng-1864-define-cross-app-asset-reference-contract branch from 36e0ff1 to a243f7c Compare September 6, 2026 22:32
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