Skip to content

feat: api client support for triggering builds#388

Open
Scr4tch587 wants to merge 3 commits into
kai/proposal-docsfrom
kai/build-api-client
Open

feat: api client support for triggering builds#388
Scr4tch587 wants to merge 3 commits into
kai/proposal-docsfrom
kai/build-api-client

Conversation

@Scr4tch587

@Scr4tch587 Scr4tch587 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

What

Adds triggerBuild() and dryRunBuild() to the typed api client (lib/api.ts), both hitting POST /api/v1/build/{name}/{version} — the dry-run variant passes dry-run=true. Adds the BuildResponse and DryRunBuildResponse types (dry-run reuses the existing DataRow shape, same as GET /data).

Why

The browsing UI is deliberately read-only (build-data=false everywhere), so until now the only way to build data was curl. This gives the frontend a typed path to the existing build endpoint ahead of the build-panel UI (next PR in the stack).

Benefit

Builds become explicitly triggerable from the browser, with dry runs available to preview builder output without writing to the db. Errors reuse ApiError, so backend detail messages (e.g. 422 no-valid-timestamps) surface verbatim in the UI.

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