FingerLakesRunnersClub / Leaderboards

Leaderboards for the FLRC Challenge and Trail Circuit
https://fingerlakesrunners.org
GNU General Public License v3.0
0 stars 0 forks source link

Add a leaderboard page that collects specific Ultra/Trail/Tarmac completions #203

Closed adamengst closed 1 month ago

adamengst commented 2 months ago

As a runner, I'd like the leaderboard to commemorate my achievement of completing one of the specific Ultra/Trail/Tarmac challenges.

As the race director, I'd like a page that would automatically detect such accomplishments and display them in three stacked tables:

Each table should list, chronologically (with earlier finishers sorted first so they get more attention), the runners who have completed the associated challenge. It should include at minimum, the runner's name, the date of completion, the time spent running, and the total elapsed time.

For the Ultra Challenge, the runner must have completed all 10 courses within 24 hours of starting.

For the other two, the runner must have completed 5 courses within 12 hours of starting.

The Tough Trail courses for this year are:

The Tough Tarmac trails for this year are:

The page should be accessible in the Reports menu under "Ultra Challenges"

SteveDesmond-ca commented 2 months ago

Proposed columns:

Can a person appear more than once in each list? That might determine whether tables can be sorted on all columns.

adamengst commented 2 months ago

So "rank" would be just the order of finish, like on the Completions page? If so, that seems fine, as do all the rest.

And yes, a person could easily appear more than once—Pete has multiple completions of the Ultra Challenge in some years.

SteveDesmond-ca commented 2 months ago

Ooh, and I guess similarly, a successful 100K attempt could also count as one or both of the Tough T[...] challenges, right? e.g. it looks like Pete also got the trail courses done in under 12 hours on 4/20, but not the road ones.

adamengst commented 2 months ago

I think I'm not in favor of the 100K Ultra Challenge double-dipping on the Trail and Tarmac Challenges. It seems like it should be one or the other, partly because of prizes. However, I could see a failed 100K Ultra Challenge effort ending up with just a Trail Challenge completion.

SteveDesmond-ca commented 2 months ago

As I'm going through this, thinking of how to break it, there are a couple edge cases that immediately come to mind that we can probably ignore for now at least, unless you feel strongly otherwise, and the add them in later as necessary:

I'm sure there will be more as I dig deeper. Thoughts on immediate importance? Maybe once I get it built I can run it through past years and see if any of these actually get triggered?

adamengst commented 2 months ago

Interesting edge cases, though I think they'd be extremely uncommon—people seem to be in "get it done" mode rather than trying to optimize for time. I don't think it would have triggered on any 100K Ultra Challenges—no one has ever run a second mile.

That said, it feels like we could just decree that it will always be the last set of courses that match the requirements, picking the last run of each course that meets the requirements. That should result in the fastest collection in your case of running multiple miles first, and in the case of sandwiching courses between miles, they'd get to roll the dice on whether the last mile would be faster than the first.

Does that sound right, or is there something I'm not considering?

SteveDesmond-ca commented 2 months ago

Progress!

image

adamengst commented 2 months ago

Looking good!

SteveDesmond-ca commented 1 month ago

The only remaining test at this point is just re-importing previous years' configs to confirm that the results match what's expected, and then this can hopefully be deployed later this week.

SteveDesmond-ca commented 1 month ago

Implemented as of 8566085