Skip to content

i_1205 Make standingsXML more palatable for WTI#1206

Open
johnbrvc wants to merge 1 commit intopc2ccs:developfrom
johnbrvc:i1205_wti_scoreboard_one_problem
Open

i_1205 Make standingsXML more palatable for WTI#1206
johnbrvc wants to merge 1 commit intopc2ccs:developfrom
johnbrvc:i1205_wti_scoreboard_one_problem

Conversation

@johnbrvc
Copy link
Collaborator

Description of what the PR does

WTI expects some things in the standings XML produced by the DSA to be arrays of XML objects (problem and problemSummaryInfo, specifically). If there is a single problem, these were not arrays. This code puts single objects of these into JSON arrays so WTI can process them properly and the scoreboard will show a single problem.

CI: Added sample contest with a single problem for testing.

Issue which the PR addresses

Fixes #1205

Environment in which the PR was developed (OS,IDE, Java version, etc.)

Windows 11
Java ver 1.8.0_321 build Windows 11 10.0 (amd64)

Precise steps for testing the PR (i.e., how to demonstrate that it works correctly)

  1. Load up the new sample contest: clics_sumit
  2. Start the contest.
  3. Start an administrator client
  4. Extract the WTI from this new version into a WTI folder
  5. Start the WTI from a command prompt
  6. Open a web browser and go to: http://localhost:8080
  7. Log in as team1/team1
  8. Make a single submission to the sumit problem
  9. Using the "administrator", you can edit the Run (submission) and set it to "JUDGED", and "Yes"
  10. View the scoreboard by clicking on the Scoreboard tab in the WTI
  11. The scoreboard should show the single problem
image

Note: Eclipse removed end of line spaces causing the diff to be astronomical. I would set ignore blanks for the diff when evaluating this PR.

WTI expects some things in the standings XML produced by the DSA to be arrays of XML objects (problem and problemSummaryInfo).  If there was a single problem, these were not arrays.  This code puts single objects of these into json arrays so WTI can process them.
CI: Added contest with a single problem for testing.
@johnbrvc johnbrvc added this to the 9.12.0 milestone Jan 20, 2026
@johnbrvc johnbrvc self-assigned this Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WTI scoreboard does not work if the contest has only one problem

1 participant