Documentation
¶
Overview ¶
Command officerfix is the officer page spec's fixture (e2e/tests/officer-needs-you.spec.ts): the rows an officer's Needs-you and What-it-did sections draw, which the e2e harness cannot make through a real route because it runs no officer instance and no plugin.
DATABASE_URL=…_e2e go run ./e2e/officerfix seed <owner-id> <officer> <plugin-name> → prints the ids as JSON
DATABASE_URL=…_e2e go run ./e2e/officerfix rmplugin <owner-id> <plugin-name>
- seed: for an officer the spec declared (through the admin API, so its
type and def are muster's own), a plugin of that name and, as an officer
instance and its plugin would leave them: one PENDING post on X the
plugin checked sendable (no media); two pending FOLLOWS of the same UTC
day (the day's outreach batch), each with a recorded person; one
draft.refused item its plugin refused on cadence, open; one finished
item with the officer's summary; and one post SENT on X for a finished
item, with its reference. The officer's items and people go with the
officer (its delete), the drafts with the plugin (rmplugin).
- rmplugin: removes one plugin of the owner's by name (its drafts
cascade) and the agent row seed made for it.
🔴 IT REFUSES ANY DATABASE WHOSE NAME DOES NOT END IN "_e2e" (e2edb.Check): it writes as the login role with row-level security's scope set to all, which nothing outside a fixture may do.