Skip to content

Open /api/v1/warmup in a browser and confirm the schema and the code met #119

Closed

Description

@lumenpearson

Only the owner can do this, and it has been outstanding since #61.

One line settles whether migration 0014 and the code that needs it actually met in production:

GET https://<production>/api/v1/warmup   →  {"status":"ok","api_version":1,"schema":"0014"}

/api/v1/warmup opens a real connection, which is what makes it the interesting one — /api/v1/health deliberately opens none, so it cannot tell you this. A degraded answer names both revisions: the database behind the code, or «База впереди кода…» in the window the correct order creates.

It cannot be closed from a session here at any effort. The deployments sit behind Vercel's Deployment Protection and answer a redirect to a login page. It needs the owner's own browser or a bypass token.

While you are there: send the bot /start. The very first message goes through the middleware that reads a class, which is the fastest check that the schema and the code agree — and it is exactly where the two worst defects in this project's history surfaced (an enum server_default written as .value, and new columns deployed before their migration). Not one server-side fix has been run against a live class.

Production was last read after #61 and answered {"status":"ok","api_version":1,"schema":"0013"}. It should now say 0014.

Activity

  1. lumenpearson commented on Sep 26, 2026

    @lumenpearson
    OwnerAuthor

    The /api/v1/warmup half is answered as of 26 September 2026, 12:36 UTC. It was read after #140 merged (4f506c2), and after 0015, 0016 and 0017 went on at 12:26:

    GET https://lessons-ruddy-zeta.vercel.app/api/v1/warmup
    → 200 {"status":"ok","api_version":1,"schema":"0017"}
    

    The schema and the code met. The response came from fra1, off a real connection.

    This issue said the check could not be done from a session. That is only true of the per-deployment URLs (lessons-<hash>-codeilluminators.vercel.app), which answer a 302 to Vercel's SSO. The production alias lessons-ruddy-zeta.vercel.app is not behind Deployment Protection and answers directly. So the check needs neither a browser nor a bypass token, as long as it goes to the alias.

    Still open, and still yours: send the bot /start. The first message goes through the middleware that reads a class. No server-side fix has run against a live class yet, and this batch changed the columns that read goes through (0015).


    Generated by Claude Code

  2. lumenpearson commented on Sep 26, 2026

    @lumenpearson
    OwnerAuthor

    The /start half, and the warmup again. The bot answered /start in the owner's chat on 26 September 2026. The warmup, answered above at 12:36 UTC, was read again at 17:05 UTC from the production deployment of bd7c816 through the Vercel connector: {"status":"ok","api_version":1,"schema":"0017"}. Both halves are read, and this closes with #186.

  3. self-assigned this
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions