Skip to content

feat: in team participants, do not set pagevars for DNP players#7483

Merged
Rathoz merged 1 commit into
mainfrom
tp-do-not-save-page-vars-for-dnp
May 12, 2026
Merged

feat: in team participants, do not set pagevars for DNP players#7483
Rathoz merged 1 commit into
mainfrom
tp-do-not-save-page-vars-for-dnp

Conversation

@Rathoz
Copy link
Copy Markdown
Collaborator

@Rathoz Rathoz commented May 11, 2026

Summary

How did you test this change?

@Rathoz Rathoz marked this pull request as ready for review May 12, 2026 09:26
@Rathoz Rathoz requested review from a team as code owners May 12, 2026 09:26
Copilot AI review requested due to automatic review settings May 12, 2026 09:26
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

This PR updates the TeamParticipants repository logic so that players marked as DNP (i.e., extradata.results == false/nil) no longer have page variables set for them, aligning pagevar output with the existing “only count players with results” behavior used for LPDB placement storage.

Changes:

  • Introduced a shared shouldStorePlayer(player) predicate to centralize the “counts for results” check.
  • Reused the predicate when filtering opponent players for LPDB placement data generation.
  • Updated setPageVars() to skip setting pagevars for players that should not be counted for results (DNP).

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

@Rathoz Rathoz merged commit 9e5ab04 into main May 12, 2026
11 checks passed
@Rathoz Rathoz deleted the tp-do-not-save-page-vars-for-dnp branch May 12, 2026 09:30
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.

4 participants