Skip to content

feat(standings): swiss legacy wrapper first iteration - #8074

Open
Rathoz wants to merge 3 commits into
mainfrom
standings-legacy
Open

feat(standings): swiss legacy wrapper first iteration#8074
Rathoz wants to merge 3 commits into
mainfrom
standings-legacy

Conversation

@Rathoz

@Rathoz Rathoz commented Sep 9, 2026

Copy link
Copy Markdown
Member

Summary

First iteration of Swiss Legacy Adapter. Supports the local implementation on League of Legends. Probably supports a bunch more too. Additional support will be added as needed.

How did you test this change?

dev on https://liquipedia.net/leagueoflegends/Ireland_Collegiate/2023-24/Spring/Swiss_Stage

Copilot AI lite review requested due to automatic review settings September 9, 2026 12:25
@Rathoz
Rathoz requested review from a team as code owners September 9, 2026 12:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The updated tiebreaker parsing can introduce duplicate manual tiebreakers when callers already include it, which should be de-duplicated to keep tie resolution consistent.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds an initial “legacy Swiss standings” wrapper module to bridge older template-style inputs into the newer Module:Standings/Table pipeline, and adjusts default tiebreaker behavior in wiki parsing.

Changes:

  • Introduces Standings/Table/Legacy/Swiss.lua to build rounds/opponents/tiebreakers from legacy args and import match2 IDs by round.
  • Updates Standings/Parse/Wiki.parseTiebreakers to always append the manual tiebreaker.
File summaries
File Description
lua/wikis/commons/Standings/Table/Legacy/Swiss.lua New legacy Swiss wrapper that converts legacy parameters into Standings/Table.fromTemplate input and optionally maps match2 rounds via LPDB.
lua/wikis/commons/Standings/Parse/Wiki.lua Changes tiebreaker defaulting by always appending the manual tiebreaker.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lua/wikis/commons/Standings/Parse/Wiki.lua
Comment thread lua/wikis/commons/Standings/Table/Legacy/Swiss.lua
-- Legacy, so let's assume finished
started = true,
finished = true,
matches = table.concat(Array.map(matches or {}, function(match) return match.id end), ','),

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.

nitpick: Operator.property

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