Repository navigation
frontend: ask the API for JSON so errors show their message; on-dev picks up new migrations - #120
Open
ndbroadbent wants to merge 2 commits into
Open
ndbroadbent wants to merge 2 commits into
ndbroadbent wants to merge 2 commits into
Conversation
…ive with their description instead of 'Request failed (403)'
…or removes a migration, so build.rs lists the new set (rsync keeps a new file's old mtime)
ndbroadbent
force-pushed
the
ui-accept-json
branch
from
December 3, 2026 06:44
26e349f to
5e04081
Compare
This branch has not been deployed
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.
The web app's API client now sends
Accept: application/jsonon every request.app/ (Laravel Rust) answers an error as JSON, with its
description, only to a request that asks for JSON. The old server always answered JSON. Since cutover, every error in the web app has shown "Request failed (403)" and the like instead of what went wrong ("only admins can change the setup checklist", a taken slug, a refused link).It's the same change as in #119, split out so it can merge as soon as merges reopen. The identical hunk rebases cleanly under #119.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.on-dev: a new migration reaches the box build
app/build.rsreads the migration list again only whenapp/database/migrationschanges. rsync gives a new file its old mtime, so a box build after a sync compiled the old list in ("column … does not exist" at run time). After its rsync,scripts/on-devnow touches that folder on the remote when the sync added or removed a migration file (read from rsync's-ilist). It doesn't touch it on every sync, which would rebuild the app every time. CI's fresh checkout isn't affected.