Skip to content

Conversation

@ElectricalBoy
Copy link
Collaborator

Summary

Module:AutomaticPointsTable is an unused "legacy" component that has been left abandoned for years, while the "live" version used on wikis is a worse spaghetti that is not even on this repository. This PR rewrites the module with the current standards.

How did you test this change?

https://liquipedia.net/valorant/User:ElectricalBoy/Sandbox3

@ElectricalBoy ElectricalBoy added the stylesheets Changes to stylesheets label Dec 29, 2025
@ElectricalBoy ElectricalBoy force-pushed the automatic-points-table-cleanup branch from faa7c37 to 3fbf2f9 Compare December 30, 2025 01:32
@ElectricalBoy ElectricalBoy marked this pull request as ready for review December 30, 2025 06:37
Copy link
Collaborator

@hjpalpha hjpalpha left a comment

Choose a reason for hiding this comment

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

skimmed through it on phone
can give a proper review in the next days

fwiw to me it seems it is still incompatible with the stuff craft wikis (plus several other wikis) use

function AutomaticPointsTable:storeLPDB(opponents)
local date = DateExt.getContextualDateOrNow()
Array.forEach(opponents, function(opponent)
local teamName = Opponent.toName(opponent.opponent)
Copy link
Collaborator

Choose a reason for hiding this comment

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

should rename, assuming we support this for non team opponents

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

actually it is limited to team opponents:

assert(parsedOpponent.opponent.type == Opponent.team)
assert(not Opponent.isTbd(parsedOpponent.opponent))

  • the old version supports teams only
  • I didn't bother expanding to party opponents mainly to keep the old alias handling behavior

Copy link
Collaborator

Choose a reason for hiding this comment

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

ugh, so this module is entirely unusable for quite a few wikis...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

well I think that it wouldn't be too hard to expand this to party opponents
we might need to rethink how to handle alias crap from scratch though

Copy link
Collaborator

@hjpalpha hjpalpha left a comment

Choose a reason for hiding this comment

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

seems cleaner, but still useless/unusable for lots of wikis
¯_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stylesheets Changes to stylesheets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants