You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
migrate-dev-db copies J5's live peers, credentials and pending deliveries #501
Found in the review of the upstream advance (#500).
apps/server/scripts/migrate-dev-db.ts copies every table into the dev database. Upstream's version clears its own pending work (outbox, scheduled work, workflows) in the copy. It does not know about J5's tables, so the copy keeps peer servers with their credentials, pending deliveries and Crew state. A dev server started on that copy polls real peers and resumes real deliveries.
The same hazard is why a seeded copy has to be neutralised by hand before a test server starts on it.
To do: have the tool neutralise J5's tables in the copy too (peers and their credentials, pending and in-flight deliveries, anything else that makes a server act), in J5-owned code called from the script.
Activity