MC/website/docs/great-migration.md

3.1 KiB

Alpha 1.0.0.7 — The Great Migration

Batch 1: central directory and contextual account views

The existing CP account tool mixes staff access, user memberships and recognition. The new directory separates Users and Staff while keeping one underlying account.

Review URL after this batch is deployed: https://cp.dunerealms.com/?migration=1#bureau/user-management. The regular URL continues to use the existing editor during this incremental batch.

Included:

  • Central organisation vocabulary: two departments, nine branches, contextual roles.
  • Additive org_assignments storage, indexed by account and scope.
  • Read-only /api/admin/citizens, /catalogue, and /:accountId endpoints.
  • Server-side whole-directory search by account name, Minecraft name/UUID or ID, contextual staff filtering and 25-record pagination with an extra sentinel row.
  • Users, Manage User and Manage Staff views. User responses exclude staff scopes and staff provenance. Staff views retain imported source identity for review.
  • Existing account administration and all live permissions remain unchanged.

Not claimed complete: assignment writes, permission activation/projection, native integration migration, the recognition editor and the audit timeline. Their UI states are explicitly marked as subsequent batches. Existing memberships have not yet been imported into org_assignments; an empty new-model list is not a claim that the citizen has no memberships in existing systems.

Validation: contextual disclosure, authentication and authorisation denials, SQL parameterisation/literal wildcard search, filter validation, schema no-grant behaviour, and pagination are covered by executable tests. No financial actions, player identities or live staff appointments are changed by this batch.

Migration rules

Reuse the existing API, database adapter and integration adapters. Do not rewrite osTicket, MyBB or LuckPerms. Human ranks lose native user/group/permission editing capabilities; those writes originate centrally. Do not remove or lock the native modules. Dev retains existing service access, separate from the human organigram.

Official bank account management is reserved for the Big Four and Department Heads. Existing system-account restrictions remain. Staff ranks contain explicit job nodes, without wildcard or OP grants. Assignments may overlap and expire; their derived rights/seals must follow their lifecycle. Earned honours remain intact.

Subsequent batches

  1. Contextual assignment editor, audited changes and central policy matrix.
  2. Map current rights to the approved hierarchy and existing native adapters; synchronisation/revocation, visible failures and retry.
  3. Recognition, personal and function seals, signatures across connected systems.
  4. Public staff organigram + ordered bio cards; separate Crysknife Order gallery.
  5. Full public profile template preserving current features; verified Bedrock-name normalisation; Picard memorial restyle/link and Big-Four-only Deceased workflow.
  6. Access/lifecycle/privacy verification, release and combined .6/.7 announcement.

Do not change the public version banner or publish release news before .7 is done.