Skip to content
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

I978: Update generated results file according to new WF honor degrees proposed by Bill #987

Merged

Conversation

SamanwaySadhu
Copy link
Collaborator

@SamanwaySadhu SamanwaySadhu commented Jul 11, 2024

Description of what the PR does

  • If WF style rankings then assign Highest Honors, High Honors and Honors instead of simply Ranked based on the rules proposed by Bill.
  • Update the team names comparator to make it case and accent insensitive.
  • Add option to generate a results.csv file as well.

Issue which the PR addresses

Fixes #978

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

Windows 10, Eclipse 2021-12 R, JDK 8u381 (1.8), C++ 13.2.0

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

  • Run the Ant script build.xml in the pc2v9 project.
  • Start a PC2 server, loading some prefinalized contest profiles folder and profiles.properties files.
  • Start a PC2 Admin.
  • Go to Run Contest and Finalize tab to toggle between WF group rankings checkbox.
  • Go to Reports in either Admin or Server.
  • Scroll down and generate results.csv or results.tsv report.

Comment

Checking success for JUnits is enough to test functionality of this PR. The JUnits have been recently curated based on WF 47 and the corresponding results.tsv in testdata has been generated by DOMjudge based on the new Bill's rules. Check the synthetic data of JUnits as well to review how code will behave under various edge cases.

1. If WF style rankings then Highest Honors, High Honors and Honors are assigned, based on new "Bill" rules.
2. Standings Record Comparator now uses case insensitive comparator for account names.
3. Account Name Comparator is updated to make accent insensitive.
1. Removed wf2017 from test data as it was not compliant with Bill's new rules
2. Added wf47 data and new results.tsv generated by DOMjudge compliant with Bill's new rules
3. Updated algorithm to consider 0 solved problems as "Honorable" no matter what
4. For non-WFGroups consider only isHonor (equivalent to isRanked)
5. Updated expected results of test cases for 0 solved problems cases.
@johnbrvc johnbrvc added this to the 9.11.0 milestone Jul 14, 2024
Copy link
Collaborator

@johnbrvc johnbrvc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed code, and tested with 2 different contests using different # of medals, etc. Tried both TSV and CSV files. Seems to work as currently desired.

@johnbrvc
Copy link
Collaborator

@SamanwaySadhu You can add your name as the author on the new module you created for the CSV report.

/**
 * Generates the results.csv report
 * 
 * @author Samanway Sadhu
 */

Credit where credit is due!

@SamanwaySadhu

This comment was marked as resolved.

Copy link
Collaborator

@kkarakas kkarakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went through the code part looks good to me. Most of the changes appear to be in data.

@clevengr

This comment was marked as resolved.

@johnbrvc

This comment was marked as resolved.

Copy link
Collaborator

@johnbrvc johnbrvc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Appears to work.

@johnbrvc johnbrvc merged commit 3d9e104 into pc2ccs:develop Aug 28, 2024
3 checks passed
@SamanwaySadhu SamanwaySadhu deleted the I978_update_resultFiles_with_new_rules branch August 28, 2024 18:10
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.

New WF48 Astana Rules approved by Bill: Degrees of honors
4 participants