officerfix

command
v0.294.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL