ENG-1909 Add no-op Next.js content upsert endpoint#1220
Open
maparent wants to merge 3 commits into
Open
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-1909-add-no-op-nextjs-content-upsert-endpoint
branch
from
July 11, 2026 13:05
4cd8e3f to
7fc6f80
Compare
maparent
force-pushed
the
eng-1909-add-no-op-nextjs-content-upsert-endpoint
branch
from
July 11, 2026 13:14
7fc6f80 to
d43d61e
Compare
maparent
marked this pull request as ready for review
July 11, 2026 13:19
maparent
marked this pull request as draft
July 13, 2026 19:52
maparent
force-pushed
the
eng-2017-add-converter-for-crossapp-schemas-to-localconceptdatainput
branch
2 times, most recently
from
July 15, 2026 19:12
1127f9a to
284254a
Compare
maparent
force-pushed
the
eng-1909-add-no-op-nextjs-content-upsert-endpoint
branch
from
July 15, 2026 19:51
615145c to
9445331
Compare
maparent
force-pushed
the
eng-1909-add-no-op-nextjs-content-upsert-endpoint
branch
from
July 15, 2026 21:41
9445331 to
856b6fc
Compare
maparent
changed the base branch from
eng-2017-add-converter-for-crossapp-schemas-to-localconceptdatainput
to
eng-2036-simplify-the-cross-app-node-contract
July 15, 2026 21:42
maparent
marked this pull request as ready for review
July 15, 2026 21:43
Base automatically changed from
eng-2036-simplify-the-cross-app-node-contract
to
main
July 16, 2026 19:46
maparent
force-pushed
the
eng-1909-add-no-op-nextjs-content-upsert-endpoint
branch
from
July 17, 2026 12:47
d73869a to
477c3be
Compare
| }); | ||
| return createApiResponse(request, result); | ||
| } catch (e: unknown) { | ||
| return handleRouteError(request, e, "/api/supabase/space/[id]/content"); |
Contributor
There was a problem hiding this comment.
The error handler path /api/supabase/space/[id]/content does not match the actual endpoint path /api/internal/space/[id]/content based on the file location. This inconsistency could cause issues with error logging, tracking, and debugging in production.
return handleRouteError(request, e, "/api/internal/space/[id]/content");
Suggested change
| return handleRouteError(request, e, "/api/supabase/space/[id]/content"); | |
| return handleRouteError(request, e, "/api/internal/space/[id]/content"); |
Spotted by Graphite
Is this helpful? React 👍 or 👎 to let us know.
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.
https://linear.app/discourse-graphs/issue/ENG-1909/add-no-op-nextjs-content-upsert-endpoint
Content upsert, based on cross-app types.
This introduces a StandaloneCrossAppContent type for upserting contents outside of concepts, following existing sync functions.
Rationale : This is the closest to the current upsert_content practices, since the upsert unification (eng-1824) has been delayed. So it should make eng-1911 as easy as possible.
There is an alternative approach: Do not create StandaloneCrossAppContent, but send the CrossAppNode with the standalone contents; and extract just the contents in the endpoint. In the longer run that is the right approach; but it is only optimal if we are doing the unification of upsert_content and upsert_concepts at the same time, which goes against PR minimalism. But I'm happy to revisit.
Also: I have not, in this PR, introduced a bulk conversion utility function, which could be more optimal in some cases. I think it is worth doing, but clearly a separate scope.
https://www.loom.com/share/202c49deb3014d2e8f60632f38ff71b4