trophy-place / community

Public repository for community additions to trophy.place
https://my.trophy.place
1 stars 0 forks source link

Game Managers need to be able to force-update a profile that was updated on PSN #11

Open TheYuriG opened 1 year ago

TheYuriG commented 1 year ago

Some games can receive patches that will update trophies' names, icons, descriptions, and even requirements. None of those changes are ever fetched by the backend because, in 99.99% of the cases, this would be a waste of computational resources. However, there is also no way to update the data for those games WHEN it's relevant to do so.

Issue #10 introduced a problem that we didn't expect, but also gave us a good starting model to work on adding this feature. The endpoint is already created, but it doesn't force update the entire trophy list yet.

This issue aims to have this endpoint updated to attempt checking the ENTIRE game data and associated trophies to see what is required to be changed, performing those changes, and then returning to the user a good changelog of what changes were performed. Once created, ready, and functional, this endpoint needs to be made available on the frontend for specific users that have the role of Game Managers, so they can trigger this update only when necessary/reported, for specific, selected titles.

TheYuriG commented 1 year ago

The endpoint for this was recently created, all it needs now is to be linked to the frontend and process the requests. Related commits: feat: updates game, trophies and content packs, fix: better comments and response Pending: internal documentation for this endpoint I've made it so that it will give you a very readable changelog of the changes performed when trying to pull information from PSN.

⚠️ As a warning, any changes made to Game content (trophy names, trophy descriptions, etc) will be wiped for things that get updated on PSN. This is to avoid that a trophy gets a new name and description, but we still use the old ones by mistake.

TheYuriG commented 1 year ago

There is a button for this on the Edit Page, but it does nothing as of yet. Blueprints also have this field active, but nothing will happen upon accepting it.

Both of those things need to be fixed.