i_1287 Use correct value for scoreboard type enum - #1289
Open
johnbrvc wants to merge 1 commit into
Open
Conversation
Do not use the enum member name for the value of the enum, rather, use the getType() method to return the correct string. Previously, the toString() method was used and this returned the enum member name, not its value. These calls were changed to getType().
johnbrvc
requested review from
JoeTerlizzi,
SamanwaySadhu,
clevengr and
kkarakas
August 10, 2026 16:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of what the PR does
Do not use the enum member name
PASSFAILfor the value of the enum, rather, use thegetType()method to return the correct string (pass-fail). Previously, thetoString()method was used and this returned the enum member name, not its value. These calls were changed togetType().There appears to be more differences than there really are due to fixing lines with spaces only on them.
Issue which the PR addresses
Fixes #1287
Environment in which the PR was developed (OS,IDE, Java version, etc.)
Windows 11
java version "1.8.0_321"
Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)
Precise steps for testing the PR (i.e., how to demonstrate that it works correctly)
Note the
scoreboard_typeproperty ispass-failas required by the CLICS specification (notpassfail).4) Exit the feeder client and the server.
5) Delete the profiles folder and profiles.properties file to allow a clean restart.
6) Load the pointscoring sample contest.
7) Start the feeder1 event feed client and press the Start button.
8) Using a browser, browse to: https://administrator1:administrator1@localhost:50443/contests
Note the
scoreboard_typeproperty isscoreas required by the CLICS specification for point scoring contests.