euanwm / OpenWeightlifting

Repository that is deployed for the OpenWeightlifting site
https://www.openweightlifting.org
BSD 3-Clause "New" or "Revised" License
31 stars 21 forks source link

Feature/add total results #270

Closed euanwm closed 9 months ago

euanwm commented 9 months ago

Major breaking change to the leaderboard API endpoint to allow for the total amount of lifters to be known in a filter query.

Schema:

{
    "size": int,
    "data": [{lift_data_1}, {lift_data_2}, {lift_data_etc}],
}
euanwm commented 9 months ago

@mountclear / @rsbrowne - It is done.

codecov[bot] commented 9 months ago

Codecov Report

Attention: 28 lines in your changes are missing coverage. Please review.

Comparison is base (9eb8a32) 91.11% compared to head (8c98c3f) 87.27%.

Files Patch % Lines
backend/dbtools/sortby.go 40.42% 26 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #270 +/- ## =============================================== - Coverage 91.11% 87.27% -3.84% =============================================== Files 11 12 +1 Lines 360 393 +33 =============================================== + Hits 328 343 +15 - Misses 25 42 +17 - Partials 7 8 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.