Public: anyone can read this; the crew can change it.

A migrated app's crew says what happens to its old database's rows, and ships the one-shot import to bring them #1035

Closed opened this
Closed without merging

The importer brief now tells the crew what happens to an old Postgres or MySQL database's rows. The earlier failed check was a capacity test, not this change. What changed Brief: src/actions/migrate.ts has one new bullet in the importer brief.

Notes

stopped closed without shipping deploy f509ede

opened this

The importer brief now tells the crew what happens to an old Postgres or MySQL database's rows. The earlier failed check was a capacity test, not this change.

What changed

  • Brief: src/actions/migrate.ts has one new bullet in the importer brief. The old database is left untouched, and the app never reaches back to it: no connection string is committed or read at boot. State moves under FORGE_APP_DATA. When rows exist, the pull ships a one-shot import script (dump file in, FORGE_APP_DATA out) and says how to make the dump and run the import.
  • Docs: docs/ORIGINS.md says the same in two sentences under "Put a crew on it".
  • Test: test/migrate.test.ts asserts the told brief carries the data paragraph.

Check failure on #1010

  • It was test/capacity.test.ts ("only a forge admin reads or changes it"). This branch doesn't touch capacity code.
  • That file passes here, 11 of 11, and main hasn't moved since the branch was cut.
  • I added an empty commit to push the branch again so the check runs once more. No code changed in this round.
  • If that test fails again, the problem is in capacity or the test, and it needs its own issue.

Left out

  • The forge doesn't write the import script or check that the crew shipped one. That stays with the crew and the reviewer.
  • I ran test/migrate.test.ts (8 pass) and test/capacity.test.ts, not the whole suite.

To try

  • Run bun test test/migrate.test.ts, or migrate a repository with a crew named and read the "Make … run here" issue.

Closes #1007

commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs