Skip to content

fix(HDB): variable setting broken due to data changes via TP vs TC#7547

Open
hjpalpha wants to merge 3 commits into
mainfrom
hjpalpha-patch-1
Open

fix(HDB): variable setting broken due to data changes via TP vs TC#7547
hjpalpha wants to merge 3 commits into
mainfrom
hjpalpha-patch-1

Conversation

@hjpalpha
Copy link
Copy Markdown
Collaborator

@hjpalpha hjpalpha commented May 23, 2026

context: https://discord.com/channels/@me/1506575739535888474/1507815419258339419

Summary

TeamParticipants stores opponent templates into extradata.opponentaliases instead of pagenames (as TC did)
this leads to HDB wiki var setting breaking

as suggested by salt we adjust HDB to work with that instead of adjusting TP as "templates would be preferable"

How did you test this change?

dev

@hjpalpha hjpalpha requested review from a team as code owners May 23, 2026 19:00
local participantResolved = mw.ext.TeamLiquidIntegration.resolve_redirect(participant)

local aliases = Array.map(placement.extradata.opponentaliases or {}, TeamTemplate.getPageName)
aliases = Array.extend(aliases,
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.

would we want to set the vars for the teamTemplates too?
if yes them

Suggested change
aliases = Array.extend(aliases,
aliases = Array.extend(aliases,
placement.extradata.opponentaliases or {},

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.

IMO yes, and eventually migrate retrieval to use templates
(i might be biased given the A/B template issues on AoE :D)

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.

fwiw i personally prefer doing it via pagenames
if we ever migrate to TT we would need to adjust all consumers
also the TP iirc do not set vars for the tt and only for the pagenames instead

nonetheless feel free to hit the "Commit suggestion"

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