i_1042 Allow modification of contestID #1044
Open
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
Add label and text field to allow easy display and modification of contest id on the Profiles tab.
The issue mentions adding to the Settings tab on the Administrator as well. I did not do this for 2 reasons:
Issue which the PR addresses
Fixes #1042
See NOTE: at bottom - this is not ready to be merged into develop until after #1040
Environment in which the PR was developed (OS,IDE, Java version, etc.)
OS : Windows 11 10.0 (amd64)
Java Version : 1.8.0_321
Precise steps for testing the PR (i.e., how to demonstrate that it works correctly)
Note that is causes a Warning print in the log if you change the contest Id. The warning says the contest Id has changed in the return packet. This is true, and is not harmful. The Packet code in PC2 shows this warning when this condition happens, presumably, in case it is not intentional.
NOTE: If the contest Id is change, no checking is performed on the validity of the Contest Id supplied. The Id should be validated. I will update this PR when PR #1040 is merged since there is a routine in there that checks for the validity of a contest Id.