-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I 221 add clarification announcement #920
I 221 add clarification announcement #920
Conversation
059b62c
to
6e84743
Compare
Various Bugs Users can also do announcement since they share a pane with the judge. (Major) Groups are not implemented (Major) NullController etc has errors in it but I dont know what they are(Major-Minor) Users receive a response, rather than announcement. (Minor) Buttons are not alligned well (Minor) Hover info can be added (Minor) Copyright are not dated right (Minor)
fd82443
to
72d3827
Compare
…y judge, various fixes and various fixes to address comments.
Merge conflicts does not appear to have caused any problems. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested at GNY and PacNW Regionals. Seems to work. There will be a couple of Issue reports following after this PR is merged to address some GUI issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed only code and not execution. Did not find anything major. Just change the first copyright lines to reflect 2024 to a few files. Approved otherwise.
@@ -472,6 +473,7 @@ public Response clarifications(@ApiParam(value="token used by logged in users to | |||
|
|||
//return to the team only those clars that came from the team, or from the judges | |||
if(clar.getTeam().getLoginName().equalsIgnoreCase(userInformation.getMyClient().getLoginName()) || isJudge || clar.isSendToAll()) { | |||
//TODO must also include clars directed to here from group |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this going to be a part of separate issue?
src/edu/csus/ecs/pc2/api/implementation/ClarificationImplementation.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description of what the PR does
Judge can now send announcement clarification to all teams,groups,certain teams with a single button. Their announcement will be displayed as announcement in "All clarifications" tab with correct destinations. In future, how it appears to WTI should be considered.
Issue which the PR addresses
fixes #221
Environment in which the PR was developed (OS,IDE, Java version, etc.)
Windows 11, Eclipse 2021-12 R, JDK 8u381 (1.8)
Precise steps for testing the PR (i.e., how to demonstrate that it works correctly)
From judge, go to generate clarification, toggle generate announcement. Observe that the text on button changes, title changes (hidden under checkbox right now), various buttons come. When announcement is sent all users receive a clarification without question.
Judge can also sent clarification without question to groups and some users from the same tab.
Observe that Judges and teams display all clarifications tab correctly. Judges now have the status of ANNOUNCED and shows all the teams,groups it sent.