I1251 wti scoreboard groups#1275
Conversation
johnbrvc
left a comment
There was a problem hiding this comment.
I'm thinking something has to be done in the .ts code to deal properly with divisions. I'm not sure where though since there is A LOT of new code to support groups. Nevertheless, I think the division issue described in the comments of the PR should be addressed somehow.
Dealing properly with divisions is such a significant process that it should be done under a separate issue; probably #689. I'll work on that separately. |
|
I updated the PR to reflect that it only applies to contests without divisions (i.e., no I also updated the "How to test the PR" steps to correctly test for a contest with teams in multiple groups without having to use the PacNW2024 contest (which uses Divisions). The second test in the steps is the new one. |






Description of what the PR does
Adds support for selecting different groups on the WTI scoreboard. Specifically,
scoreboard-page.component.{ts,html,sccs}so that if there is more than onegroupcontaining teams in the contest, a dropdown list for group selection appears on the WTI Scoreboard page; selecting a group from the dropdown causes the scoreboard to display (only) teams in the selected group, ranked from 1..N within the selected group.ContestControllerso that it augments the JSON returned to ascoreboardendpoint query to include all groups of which the requesting team is a member (the existing implementation only provides a team's "primary group", which is not sufficient to determine what teams to display if teams can be members of more than one group).What the PR does NOT do:
wtiBoardUseDivisionsentry in the WTIpc2v9.inifile. Support for divisions will be handled via work under a separate Issue: Improve/automate/redesign how divisions are handled #689.Issue which the PR addresses
Fixes #1251
Environment in which the PR was developed:
Windows 11, java version "1.8.0_381", Chrome Version 148.0.7778.96 (Official Build) (64-bit)
Precise steps for testing the PR:
Setup
Verify that the WTI Scoreboard works correctly when there are multiple displayable groups but a given team only appears in single group.
WF49BakuFinalized.zipfile from https://drive.google.com/drive/folders/1GPl7c8MzmhSUZ905vvPkpE59FR_Y4EwC?usp=drive_link. This is a PC2 profile for the WF Baku contest, in which there are multiple displayable groups but each team is a member of only one group./profilesfolder and theprofiles.propertiesfile into the root of the unzipped PC2 distribution.ConfigureContest>Accountstab, edit thescoreboard2account: change the password to "scoreboard2" (an alternative would be to update the WTI pc2v9.ini file to specify the existing scoreboard2 password prior to starting the WTI Server).WTI-Interface.zipfile../bin/pc2wti).Scoreboardmenu on the WTI.Groupdropdown list appears at the top of the scoreboard, and that the default (selected) entry is "All teams".RunContest>Standingsscreen.Groupsdropdown, select a specific group.RunContest>Standingsscreen, click the checkbox in the right-side panel that matches the selected group.Verify that the WTI Scoreboard works correctly when there are multiple displayable groups and a given team appears in multiple groups.
Configure Contestscreen,Accountstab, select any team. Notice what Group is listed for that team (in theGroupscolumn).Editbutton, and scroll down in theGroupspane and verify that the correct Group (from the previous step) is checked.Verify that the WTI Scoreboard works correctly when there is exactly one displayable group and all teams are in that group.
profilesandlogsfolders, and theprofiles.propertiesfile.projectsfolder, DELETE theWebTeamInterfacefolder (but not the.zipfile from which that folder was extracted). This puts you back to a clean PC2 installation.GNY2025Finalized.zipfile from https://drive.google.com/drive/folders/1GPl7c8MzmhSUZ905vvPkpE59FR_Y4EwC?usp=drive_link. (This is a contest with just one displayable group.)/profilesfolder and theprofiles.propertiesfile into the root of the unzipped (clean) PC2 distribution.Unfreeze Scoreboard.Updateat the bottom of the Admin Settings screen.ConfigureContest>Standingstab.Verify that contests without groups work correctly.
profilesandlogsfolders, and theprofiles.propertiesfile.projectsfolder, DELETE theWebTeamInterfacefolder (but not the.zipfile from which that folder was extracted). This puts you back to a clean PC2 installation.PC2MultiSumitHelloSample.zipfile from https://drive.google.com/drive/folders/1GPl7c8MzmhSUZ905vvPkpE59FR_Y4EwC?usp=drive_link. This is a PC2 profile for a contest with no groups./profilesfolder and theprofiles.propertiesfile into the root of the unzipped (clean) PC2 distribution.ConfigureContest>Standingstab.