Skip to content

app/: the domain tables and models (sc-8900) - #54

Merged
ndbroadbent merged 3 commits into
mainfrom
laravel-data
Dec 2, 2026
Merged

ndbroadbent merged 3 commits into
mainfrom
laravel-data

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

The data side of the port (sc-8900), stacked on #52 (sign-in), which is stacked on #51 (auth).

  • One baseline migration for the domain tables, from the storage design (docs/design-storage.md, Storage design for the rebuild (docs only) #48): organizations, memberships, projects, builds, snapshots, snapshot_pages, texts (lz4, by hash), build_groups with source_build_id and the effective_snapshots view, baselines, renders, diffs, blobs, variants, ignored_changes, reviews, comment threads and comments, pr_comments, branch_checks, feedback, admin_audit and credit_transactions.
  • A model per table, plus a read-only EffectiveSnapshot over the view.
  • app::testing::fixtures (organization, project, member). The auth tests use real rows in place of the stand-in memberships table.
  • Tests: a build reads a sourced group from its holder (own rows plus sourced rows, unchanged and sourced); page text is lz4. cargo test all pass; clippy clean.

@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #212 · 331 unchanged · no changes

This PR vs base: 2 changed since #194, across 2 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent changed the base branch from laravel-sign-in to main December 2, 2026 13:14
…tions, memberships, projects, builds, snapshots, pages, texts (lz4), build groups with the effective_snapshots view, baselines, renders, diffs, blobs, reviews, comments and the credit ledger, as docs/design-storage.md lays them out with its indexes; JSON arrays where Laravel Rust 0.1.4 has no PostgreSQL arrays; project tokens belong to a project; test fixtures; the auth tests use real rows
…login, numbered when taken) with its admin membership and a default project: the SignedUp listener
@ndbroadbent
ndbroadbent merged commit 017c126 into main Dec 2, 2026
11 checks passed
@ndbroadbent
ndbroadbent deleted the laravel-data branch December 2, 2026 13:53
ndbroadbent added a commit that referenced this pull request Dec 2, 2026
…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
ndbroadbent added a commit that referenced this pull request Dec 2, 2026
…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
ndbroadbent added a commit that referenced this pull request Dec 2, 2026
…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
ndbroadbent added a commit that referenced this pull request Dec 2, 2026
…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
ndbroadbent added a commit that referenced this pull request Dec 2, 2026
…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
ndbroadbent added a commit that referenced this pull request Dec 2, 2026
…71)

* app/: review fixes for #54 and #62 (sc-8900): indexes on the foreign 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

* app/: the renderer version comes from RENDERER_VERSION, as production's server image sets it; build output under app/target/ is no longer tracked
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