Skip to content

Implementation Proposal — Persistent Map Editing & DB Migration #371

Description

@lovely60100

I can implement the persistence layer for map editing, following the existing "game-data" revision architecture rather than introducing a separate persistence pattern.

Planned implementation:

  • Add the database representation required for edited maps.
  • Build an idempotent importer for all 294 maps from "api/src/mapas_source/".
  • Preserve the existing file-based maps as a fallback during migration.
  • Implement DB-over-file precedence for edited maps.
  • Integrate map edits with "game_data_revisions", including checksums/revision tracking.
  • Add integration tests covering the full migration and persistence flow.

I’ll prioritize preserving current game behavior while keeping the importer safe to run repeatedly without duplication or corruption.

Before implementation, I’ll verify the current map-loading and revision code paths so the solution fits the existing architecture cleanly.

I can deliver this as a focused PR with tests and clear migration notes.

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