Conversation
SaxonF
added this pull request to stack #6600
September 14, 2026 11:20
SaxonF
force-pushed
the
notebooks/05-cli-notebooks-push
branch
from
September 15, 2026 00:12
5c43e24 to
831d7fd
Compare
Adds `supabase notebooks push`, the mirror of `notebooks pull`: every file in `supabase/notebooks/` is written to the project notebook of that name, or to a new one when the project has none. Every file is read and decoded before the first upload, so a directory holding one unreadable notebook fails without having half-pushed the rest. Keys a file leaves out stay out of the request rather than going up as explicit nulls, which is how `favorite` keeps whatever the dashboard set on a notebook whose file never mentions it. Project notebooks naming no local file are the divergence this command asks about, the same three answers `pull` offers pointing the other way. Passing a notebook name pushes just that one and reconciles nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
SaxonF
force-pushed
the
notebooks/05-cli-notebooks-push
branch
from
September 15, 2026 00:29
831d7fd to
5295d34
Compare
SaxonF
removed this pull request from stack #6600
September 15, 2026 00:30
SaxonF
added this pull request to stack #6612
September 15, 2026 00:31
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.
Adds
supabase notebooks push, the mirror ofnotebooks pullfrom the previous PR in this stack. Every file insupabase/notebooks/is written to the project notebook of that name, or to a new one when the project has none.Behavior worth reviewing
favoritekeeps whatever the dashboard set on a notebook whose file never mentions it.schema_versionis server-owned and dropped on pull, so it never round-trips back.ids written out on pull are echoed on push, so a cell keeps its identity across an update instead of being replaced by a copy.pulloffers, mirrored: leave them, write them into the directory, or delete them from the project. Passing a notebook name pushes just that one and reconciles nothing.Reviewer notes
Beyond
push/, the diff re-exportsdeleteRemoteNotebookandNotebookNotFoundError(used only by push) and extends the shared regression suite innotebooks.integration.test.tsto run over both commands — the previous PR ran it overpullalone. The added round-trip test pulls a notebook with chart and log cells and pushes it back, asserting the request body matches what came down.push/SIDE_EFFECTS.mdrecords the side-effect surface.