Skip to content

migrate-dev-db copies J5's live peers, credentials and pending deliveries #501

Closed

Description

@Jacksondr5

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions