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

refactor(match2): remove match.vod in favor of match.links.vod #4941

Closed
wants to merge 4 commits into from

Conversation

Rathoz
Copy link
Collaborator

@Rathoz Rathoz commented Oct 22, 2024

Summary

Resolves #4940
Waiting for some standardization from #4939 and backwards compatibility setup in #4822 before this PR can be completed.

https://liquipedia.net/starcraft2/Module:HeadToHead needs to be updated after golive

How did you test this change?

@@ -417,8 +417,8 @@ end
---@return {index: number, link: string}[]
function MatchTable:vodsFromRecord(record)
local vods = {}
if String.nilIfEmpty(record.vod) then
vods = {{index = 0, link = record.vod}}
if String.nilIfEmpty(record.links.vod) then
Copy link
Collaborator

@hjpalpha hjpalpha Oct 22, 2024

Choose a reason for hiding this comment

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

links is not retrieved, you need to adjust the query param in the query calls too (lines 290-291)

@@ -311,7 +311,7 @@ function Details:countdown(matchPageIcon)

local gameVods = Array.map(Array.map(match.match2games, Operator.property('vod')), makeVod)

countdownDisplay:node(makeVod(match.vod))
countdownDisplay:node(makeVod(match.links.vod))
Copy link
Collaborator

@hjpalpha hjpalpha Oct 22, 2024

Choose a reason for hiding this comment

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

need to adjust DEFAULT_QUERY_COLUMNS too
and check if there are places overwriting that default somewhere

and also infobox player on sc2

@hjpalpha
Copy link
Collaborator

should probably also update the comment in Module:Lpdb

@Rathoz Rathoz closed this Oct 30, 2024
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.

RFC: Remove vod field in match2
2 participants