Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(game): show beaten progress on an optimistic basis #1900

Merged

Conversation

wescopeland
Copy link
Member

This PR adjusts how the progress component on game pages renders Beaten and Beaten (softcore) statuses.

Rather than explicitly checking for the award, the status is rendered now on an optimistic basis dependent upon the user's current unlocks for the game. This better facilitates self-healing of beaten game awards when async metrics aggregation is used.

Copy link
Member

@Jamiras Jamiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than explicitly checking for the award, the status is rendered now on an optimistic basis dependent upon the user's current unlocks for the game.

It seems like it was doing that before.

The only changes I see here are calling testBeatenGame is dependent on the aggregate queries feature being disabled, and it will still check for a hardcore beaten badge if the softcore beaten badge was awarded. Otherwise, the functionality appears the same.

public/gameInfo.php Show resolved Hide resolved
@wescopeland wescopeland merged commit db7bc5a into RetroAchievements:master Oct 1, 2023
5 checks passed
@wescopeland wescopeland deleted the optimistic-beaten-progress branch October 1, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants