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(StaticData): use correct count of total games #2453

Merged

Conversation

wescopeland
Copy link
Member

Removes static_addnewgame() in favor of a scheduled command which updates NumGames to the correct value on a periodic basis.

Resolves #1356.

@wescopeland wescopeland requested a review from a team May 19, 2024 23:23
app/Platform/Actions/UpdateTotalGamesCount.php Outdated Show resolved Hide resolved
@@ -47,11 +48,13 @@ class EventServiceProvider extends ServiceProvider
AchievementPublished::class => [
DispatchUpdateGameMetricsJob::class, // dispatches GameMetricsUpdated
DispatchUpdateDeveloperContributionYieldJob::class, // dispatches UpdateDeveloperContributionYield
UpdateTotalGamesCount::class,
Copy link
Member

Choose a reason for hiding this comment

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

Eventually I see this also updating TotalAchievementsCount. Should that logic just be rolled into this class and renamed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point -- personally I could go either way on this (having two separate actions vs a single action).

I lean more towards having two separate actions just because the queries to construct the two data points are likely quite different, but that's a very very loosely-held opinion.

@televandalist
Copy link
Member

Removes static_addnewgame() in favor of a scheduled command which updates NumGames to the correct value on a periodic basis.

Resolves #1356.

Oh man, I can finally do my milestone announcements without having to explain the wrong stats every time 😆

@wescopeland wescopeland merged commit 05f39ca into RetroAchievements:master Jun 7, 2024
5 checks passed
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.

The "Games" count used on the home page is inaccurate
3 participants