Skip to content

Conversation

@hjpalpha
Copy link
Collaborator

@hjpalpha hjpalpha commented Jan 8, 2026

depends on #6946

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?

to be done

-- assume an event is finished 2 days after the enddate latest
-- 1 day for finishing the day of the enddate
-- 1 day for potential timezone offsets plus events reaching into the next day from time to time (i.e. over midnight)
return endDate + DateExt.daysToSeconds(2) < DateExt.getCurrentTimestamp()
Copy link
Collaborator

@mbergen mbergen Jan 11, 2026

Choose a reason for hiding this comment

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

Me might as well add the second day into the phase calculation in Module:Tournament, and just use the phase here

Nevermind, the phase is used e.g. on mainpage matchticker and should be rather tight

Copy link
Collaborator

Choose a reason for hiding this comment

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

and the entire point of this change is to avoid the query the calc of phase comes after the query...

Think you are confusing match and tournament phase, i was talking about the latter, which could be used from https://github.com/Liquipedia/Lua-Modules/pull/6958/changes#diff-c785af01ddd309e4adb29a541146f4098cb8d84d697b7e051cbc9415c1458427R305

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.

3 participants