Home

boring / v2

publicBoring-Software-Inc/v2
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

fix(web): claim the install in the run-view fixture

2 months ago

28f3628
Authored
grim8/19/2026, 5:35:15 AM
The re-run scope hangs off repo.org_id, which only gets set when an
install is claimed. The fixture predates claims and synced its repos
with the 4-arg call, so org_id stayed null, the scope block in
loadRunView was skipped and repoName came back null.

Claiming the install exercises that block for the first time, which
surfaced a second problem: apps/web dynamically imports drizzle-orm
in ~14 server modules without declaring it. Bundled builds resolve it
through the root, bun test does not. Declared it.

- test seeds an org + organization_installations claim, syncs with
  the resolved org id
- user-1 stays a non-member, so the session view surfaces the scope
  and still refuses the re-run

Parent2a3065e

3 files changed
  • apps/web/package.json+1−0
  • apps/web/src/lib/server/run-view.integration.test.ts+15−0
  • bun.lock+1−0