Skip to content

feat(infobox): do not query for matchticker on finished events in infobox league#6958

Open
hjpalpha wants to merge 2 commits intomainfrom
infobox-league-match-ticker-do-not-query-when-finished
Open

feat(infobox): do not query for matchticker on finished events in infobox league#6958
hjpalpha wants to merge 2 commits intomainfrom
infobox-league-match-ticker-do-not-query-when-finished

Conversation

@hjpalpha
Copy link
Collaborator

@hjpalpha hjpalpha commented Jan 8, 2026

Summary

avaoid the query for finished events for perf reasons

init discussion on admin discord: https://discord.com/channels/321003439431745537/382120794718732288/1458555076728848597

How did you test this change?

dev

@hjpalpha hjpalpha marked this pull request as ready for review January 28, 2026 13:36
@Eetwalt Eetwalt requested review from a team and removed request for a team January 28, 2026 14:56
FINISHED = 'Finished Tournaments'
}

local tournamentPhase = TournamentService.tournamentFromRecord(self.lpdbData).phase
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't we just reuse this logic?

Copy link
Collaborator

Choose a reason for hiding this comment

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

See #6958 (comment)

Basically, when a tournament runs past midnight on enddate, the matchticker would stop working with that.(Tournament.phase is enddate inclusive, this is enddate inclusive + 1 day)
Since phase is also used on Tournaments Ticker, that's intended and cannot really be adjusted without looking bad there.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Then we should probably adjust the logic elsewhere too

Copy link
Collaborator

Choose a reason for hiding this comment

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

Which 'elsewhere' are you referring to?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The category, the tournament ticker, the generator to the tournament dropdown, there might be other places too

Copy link
Collaborator

Choose a reason for hiding this comment

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

All these places are fine with the current phase calculation, that's exactly why we cannot adjust it and instead copy+slightly tweak it here.

You would not want to have every tournament that ends on a sunday to be still "ongoing" on monday because some matches might cross the date boundary in the night.
You do want to have the matchticker available in these cases tho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants