Skip to content

Rework achievement and quest data processing #296

@builder-247

Description

@builder-247

Currently quest and achievement data is handled inefficiently, causing extra delay to requests and stress on the internal network.

Scope of the refactor:

  1. Move quests and achievements to their own MongoDB collections

    • Make a script migrating the DB(?)
  2. The /players/:id endpoint no longer needs to wait for promise from parseAchievements since total achievement points are now included in the Hypixel API

Some relevant parts of code:

https://github.com/slothpixel/core/blob/master/routes/spec.js#L256-L266

https://github.com/slothpixel/core/blob/master/processors/processPlayerData.js#L131-L136

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededrefactorCode that should be improved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions