Closed minetoblend closed 8 months ago
The update introduces a new workflow for managing beatmaps in a NestJS application, focusing on the creation and retrieval of beatmap snapshots. This change decentralizes beatmap data storage, moving from storing data directly within beatmap entities to handling it through snapshots. It involves adding new services, entities, and modifying existing logic to incorporate snapshot management, enhancing the system's ability to handle beatmap versions and data efficiently.
File Path | Change Summary |
---|---|
.../beatmap/beatmap-export.service.ts .../beatmap/beatmap-import.service.ts .../editor/editor.room.manager.ts .../editor/editor.room.ts |
Added dependency on BeatmapSnapshotService and modified logic for snapshot handling. |
.../beatmap/beatmap-snapshot.entity.ts .../beatmap/beatmap-snapshot.service.ts |
Introduced BeatmapSnapshotEntity and BeatmapSnapshotService for managing beatmap snapshots. |
.../beatmap/beatmap.entity.ts |
Removed data: BeatmapData property. |
.../beatmap/beatmap.module.ts .../beatmap/beatmap.service.ts |
Updated to include BeatmapSnapshotService . |
.../tasks/migrations/1708736838564-beatmap-snapshots.ts |
Migration for creating and populating beatmap_snapshot table. |
🐰✨
In the land of code and bits,
A rabbit hopped, fixing kits.
"Snapshots here, snapshots there,
Beatmaps thrive, with care to spare.
Through changes vast, we hop with glee,
For better versions, we all agree."
🌟🐾
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Adds beatmap snapshots, to allow reading an earlier state of beatmaps in the future. If last snapshot was created less than 5 minutes ago it will be updated instead of creating a new one, to save some disk space.
Summary by CodeRabbit
beatmap_snapshot
table and update existing beatmap data to support snapshots.