thewca / thewca/statistics

getWcaIdPage() has an off by 1 error

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
15
Forks
16
PR merge metrics
No merged PRs in 30d

Description

In sum of ranks, if you search by id for someone who's SOR placement is a multiple of 20, the page number will be 1 higher than it should be.
to recreate, go to https://statistics.worldcubeassociation.org/sum-of-ranks, search for someone who's rank is a multiple of 20 (e.g 2017SWOR01 who is no. 20) and press enter.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating getWcaIdPage() and reproduce the issue at the Sum of Ranks page with competitor 2017SWOR01, whose rank is 20. Check the page calculation for ranks that are exact multiples of 20; done means those searches return the correct page without the one-page offset.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.