Closed minetoblend closed 8 months ago
The changes primarily focus on enhancing the beatmap functionality within the application. This includes adding new properties to beatmap and room information types, refining the asset management process, and introducing a sophisticated system for handling beatmap thumbnails through processing jobs. Additionally, there's an emphasis on improving the infrastructure with the addition of modules for task scheduling and Redis-based job management, alongside securing access to administrative features.
File(s) | Summary |
---|---|
Dockerfile |
Adds sharp package installation in @osucad/server workspace using yarn. |
.../src/components/beatmap/MapsetCard.vue |
Updates cover URL retrieval to use thumbnailSmall instead of background . |
.../src/types/beatmap.ts , .../src/types/roomInfo.ts |
Makes thumbnailSmall and thumbnailLarge optional/nullable in beatmap types; changes thumbnail in room info to be required or null . |
.../src/admin/admin.controller.ts , .../src/beatmap/beatmap.controller.ts , .../src/beatmap/mapset.controller.ts |
Updates thumbnail link logic based on thumbnailSmall and adjusts logic for importing and finding mapsets. |
.../src/app.module.ts |
Adds imports and configurations for BullModule , ScheduleModule , BullBoardModule , ExpressAdapter , and BullboardAuthMiddleware . |
.../src/assets/assets.service.ts |
Refactors asset handling with new methods for managing asset operations. |
.../src/beatmap/beatmap-import.service.ts , .../src/beatmap/beatmap-thumbnail.processor.ts , .../src/beatmap/beatmap.service.ts |
Enhances beatmap import and thumbnail processing with TypeORM, NestJS injections, and new operations. Adds thumbnailQueue for processing thumbnail jobs in BeatmapService . |
.../src/beatmap/beatmap.entity.ts , .../src/beatmap/mapset.entity.ts |
Adds needsThumbnail , thumbnailLarge , and thumbnailSmall properties; updates getInfo method to include thumbnail URLs. |
.../src/beatmap/beatmap.module.ts |
Integrates BeatmapThumbnailProcessor with Bull queue and BullBoard for thumbnail processing. |
.../src/bullboard-auth.middleware.ts |
Introduces BullboardAuthMiddleware to check admin status for requests. |
.../src/tasks/migrations/1708971421003-beatmap-thumbnails.ts |
Adds migration for thumbnail-related fields in the beatmaps database table. |
π°β¨
In a land of code and binary streams,
A rabbit hopped, chasing digital dreams.
With each commit, a new feature blooms,
Among the bytes, its excitement looms.
"To the beatmaps!" it joyously screams.
ππ¦πΆ
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?
Summary by CodeRabbit
MapsetCard.vue
for enhanced visual representation.BullModule
,ScheduleModule
, andBullBoardModule
.beatmaps
table.