Skip to content

P3 — Scripted verification checklist for the auth.users provisioning trigger #63

Description

@BluegReeno

Follow-up from PR #60 (review finding M5).

Coverage of provision_workspace_membership() currently rests on a single manual happy-path check at apply time. Write a scripted / documented 6-scenario verification checklist. The two branches most likely to be missed by a click-through:

  • UPDATE-after-INSERT firing — the real auth-gateway path (company_id set in a 2nd step, not at insert).
  • is_default guard — user who already holds a default elsewhere must not get a 2nd default (partial-unique-index guard).

Other scenarios: fresh insert with company_id present; company_id set to a company with no hal workspace (expect RAISE WARNING, no row, no abort — M3); idempotent re-run (membership already exists, silent); routine last_sign_in_at update (trigger must NOT fire).

Priority: P3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions