Skip to content

Conversation

tohyzhong
Copy link
Contributor

@tohyzhong tohyzhong commented Mar 17, 2025

Description

  • Added Overall Leaderboard and Contest Leaderboards
  • XP and contest score fetching from backend
  • Top X Contest Entries to display, Top X Overall leaderboard entries to display
  • contest scores update button in ground control (under voting features)
  • Update assessment workspace Leaderboard logic (based on customised X desired contest entries to display) + csv export fix
  • Automatic XP assignment for contest winners based on XML file (fallback on default value iif XML file does not specify any, put 0 in for rank 1 to not give any XP)
  • Leaderboards are ranked such that the same rank can be given for same score/XP, and we will skip however many ranks that are duplicated. (e.g. if we have two rank 1s, the next will be rank 3)
  • Updated contest winner fetching for assessment workspace leaderboard to align with new Leaderboard page

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Code quality improvements

How to test

Checklist

  • I have tested this code
  • I have updated the documentation

@tohyzhong tohyzhong self-assigned this Mar 17, 2025
@coveralls
Copy link

coveralls commented Mar 17, 2025

Coverage Status

coverage: 91.406% (-1.1%) from 92.467%
when pulling a9a2288 on leaderboard
into a877e75 on master.

@tohyzhong tohyzhong requested a review from GabrielCWT April 30, 2025 10:31
Copy link
Contributor

@GabrielCWT GabrielCWT left a comment

Choose a reason for hiding this comment

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

Thanks for reviewing my comments so quickly. Just a few more minor nits. Also do update the tests to make sure they pass.

@tohyzhong tohyzhong requested a review from GabrielCWT May 4, 2025 15:45
@sayomaki sayomaki mentioned this pull request Jun 16, 2025
7 tasks
@RichDom2185
Copy link
Member

Thanks @GabrielCWT for reviewing, CI is finally back up so we can merge this once FE is reviewed too.

Copy link
Contributor

@sayomaki sayomaki left a comment

Choose a reason for hiding this comment

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

LGTM, let us have this merged. Proposed changes will be consolidated in a follow-up PR.

@sayomaki sayomaki merged commit 415c28e into master Aug 6, 2025
1 of 3 checks passed
@sayomaki sayomaki deleted the leaderboard branch August 6, 2025 15:59
@sayomaki sayomaki mentioned this pull request Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

6 participants