Skip to content

fix(TeamCard/Legacy): Changed behaviour in input processing#7658

Open
hjpalpha wants to merge 4 commits into
mainfrom
tc-legacy-edge-case
Open

fix(TeamCard/Legacy): Changed behaviour in input processing#7658
hjpalpha wants to merge 4 commits into
mainfrom
tc-legacy-edge-case

Conversation

@hjpalpha

@hjpalpha hjpalpha commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

TC Legacy wrapper changed the behaviour for how player data is processed in comparison to the old TC.
This can lead to unexpected and faulty behaviour in edge cases.
Namely if there are 2 players with different links but the same display name.
In this case reading from wiki vars as TP does can cause issues.
Hence restore the old behaviour that TC had via some adjusts in the legacy wrapper so that:

  • link input falls back to display name input
  • flag is retrieved from lpdb without checking wiki vars

fwiw i hate this solution but i couldn't think of a different one...
only alternative i see would be to build a query to find all affected pages across all wikis and fix them manually ... (too much work imo ...)

open question

do we need it for staff etc too?

How did you test this change?

|dev=hjp on https://liquipedia.net/valorant/index.php?title=VCT/2025/Game_Changers_Championship&oldid=1262980
(needs to be the old revision as a temp solution has been applied to that specific page for now)

@hjpalpha hjpalpha force-pushed the tc-legacy-edge-case branch 2 times, most recently from 991e1b9 to d8f401c Compare June 14, 2026 11:25
@hjpalpha hjpalpha force-pushed the tc-legacy-edge-case branch from 38c2694 to 3b3f788 Compare June 14, 2026 11:29
link = tcArgs[prefix .. 'link'],
flag = tcArgs[prefix .. 'flag_o'] or tcArgs[prefix .. 'flag'],
link = pageName,
flag = tcArgs[prefix .. 'flag_o'] or tcArgs[prefix .. 'flag'] or getNationality(pageName),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This won't be sufficient in case one of them has no page, right?
We'd actually need to disable using vars in that case.

@hjpalpha hjpalpha Jun 14, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
flag = tcArgs[prefix .. 'flag_o'] or tcArgs[prefix .. 'flag'] or getNationality(pageName),
flag = tcArgs[prefix .. 'flag_o'] or tcArgs[prefix .. 'flag'] or getNationality(pageName) or 'unknown',

maybe like this?

else i would have to check on it when on pc again

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.

2 participants