Repository navigation
app/: review fixes for the domain tables and the build API (sc-8900) - #71
Merged
Merged
Conversation
VisualCIdocspring/visualci · build #372 · 331 unchanged · no changes This PR vs base: nothing since #228, across 9 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
laravel-review-fixes
branch
from
December 2, 2026 14:16
2821734 to
80bb73e
Compare
ndbroadbent
force-pushed
the
laravel-api
branch
from
December 2, 2026 14:16
47be2d2 to
8a4aca5
Compare
ndbroadbent
force-pushed
the
laravel-api
branch
from
December 2, 2026 14:48
8a4aca5 to
cb7fee4
Compare
ndbroadbent
force-pushed
the
laravel-review-fixes
branch
from
December 2, 2026 14:48
80bb73e to
bae5d1f
Compare
ndbroadbent
force-pushed
the
laravel-review-fixes
branch
6 times, most recently
from
December 2, 2026 17:11
03a6547 to
6f3ef87
Compare
…keys whose deletes would scan (baselines.review_id and approved_by, builds.created_by_user_id, comments.user_id, comment_threads.resolved_by); credit_transactions.build_id and a gallery day key; snapshot registration as one conditional upsert (a race between two files is a 409 for one of them), resetting a carried row; limits on commits, parent commits, branch, name, nonce, content type and meta; every snapshot validated before any is written; today's 401 messages; the personal organization takes the next slug on a race; credits::usage, plans, allowance and spend
…'s server image sets it; build output under app/target/ is no longer tracked
ndbroadbent
force-pushed
the
laravel-review-fixes
branch
from
December 2, 2026 20:07
6f3ef87 to
36307e9
Compare
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…ads, the open source pool) from the domain's credits::usage, as today's (#71); the sc-8900 gate
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
) * app/: the person's own page (sc-8900): GET /api/ui/me (who they are, their organizations and roles, pending invitations, email choices, the heard-about question), email choices, an organization's billing email (admins), 'How did you hear about VisualCI?'; the team's email about each new sign-up through the outbox (reply-to the person), once answered or ten minutes after sign-up, every minute with a heartbeat (VISUALCI_SIGNUPS_HEARTBEAT) that fails when one waits over 40 minutes * Me, review fixes: /me says which forges people can sign in with (an OAuth application with its ID and secret), as today's; staff who aren't in an organization can't change its billing email; the sign-ups heartbeat fails when the database can't answer * Test: a signed-out /api/ui/me asks for JSON, as the React app does (a page request goes to /login since #57) * /me: each organization's usage (plan, credits this month, packs, reloads, the open source pool) from the domain's credits::usage, as today's (#71); the sc-8900 gate * Rebased on main: Cargo.lock resolved from main's, and the boot checks and dependencies merged
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 second review's fixes for #54 and #62, on top of #62. They go in before processing.
Schema (the baseline migration, since nothing has run it yet):
baselines.review_id,baselines.approved_by,builds.created_by_user_id,comments.user_id,comment_threads.resolved_by;credit_transactions.build_id(ON DELETE SET NULL, indexed): a build charge names its build, andspendtakes it;credit_transactions.day, with a unique key on (organization, project, day) for gallery roll-ups.Registration is one conditional upsert:
carried_forward,base_snapshot_id,reviewanderror.Limits:
abcandlmn, and the golden answers echo them back;Also:
add_purchased_creditsusesdb::is_unique_violation.Credits (for subdomains'
/meand billing): plans, the allowance, the open source pool,blocked,spendandusage(&Organization), which is today's usage JSON.Not here:
expire_abandonedon build creation needs the processing job, so it lands with processing (or the stuck-build sweep, sc-8896).Tests: limits and 401s, validate-before-write, usage. All of
cargo testpasses, and clippy is clean.