Skip to content

fix: issue with aoe subteams with team participants#7448

Open
Rathoz wants to merge 4 commits intomainfrom
fix-aoe-subteam-issues
Open

fix: issue with aoe subteams with team participants#7448
Rathoz wants to merge 4 commits intomainfrom
fix-aoe-subteam-issues

Conversation

@Rathoz
Copy link
Copy Markdown
Collaborator

@Rathoz Rathoz commented Apr 30, 2026

Summary

Resolves #7217

How did you test this change?

dev

@Rathoz Rathoz force-pushed the fix-aoe-subteam-issues branch from 63af91c to 2e3520a Compare April 30, 2026 12:29
@Rathoz Rathoz marked this pull request as ready for review April 30, 2026 12:34
@Rathoz Rathoz requested review from a team as code owners April 30, 2026 12:34
Copilot AI review requested due to automatic review settings April 30, 2026 12:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes missing team roster/flag variable storage for subteam (A/B variant) participants by ensuring the team’s template identifier is included among the stored aliases, improving downstream retrieval in match parsing/display.

Changes:

  • Add opponent.template to the alias list generated for each parsed team participant.
  • This results in additional alias-based variable storage paths for teams, helping match modules find roster/flag data for subteams.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/wikis/commons/TeamParticipants/Parse/Wiki.lua
@Rathoz Rathoz requested a review from mbergen April 30, 2026 12:41
Comment thread lua/wikis/commons/TeamTemplate.lua Outdated
Comment thread lua/wikis/commons/TeamTemplate.lua Outdated
Comment thread lua/wikis/commons/TeamParticipants/Repository.lua Outdated

local aliases = Array.parseCommaSeparatedString(input.aliases, ';')
table.insert(aliases, Opponent.toName(opponent))
table.insert(aliases, opponent.template)
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 should not be necessary with the changes to TT.getPageName, as `Opponent.toName uses that, right?

Suggested change
table.insert(aliases, opponent.template)

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.

GetPageName works the same as before, other than it reuses a new function

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.

Template names are lower case as well, while a pagename is not necessarily

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.

GetPageName works the same as before, other than it reuses a new function

The diff made it easy to misread, sorry.

However, if toName still uses redirects resolved page names, this would still run into issue when e.g. enriching placement data in TeamParticipants

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.

TeamParticipants does not store all variables for flag retrieval

5 participants