Skip to content

Home page benchmarks - One benchmark per organizer in Popular and Recent - #2763

Merged
Didayolo merged 2 commits into
developfrom
home_one_benchmark_per_organizer
Nov 24, 2026
Merged

Didayolo merged 2 commits into
developfrom
home_one_benchmark_per_organizer

Conversation

@ihsaan-ullah

@ihsaan-ullah ihsaan-ullah commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Description

On home page sometimes we would see the threee competitions in recent and popular sections from one organizer. This PR changes that:

  • Popular shows only the most popular benchmark of each organizer
  • Recent shows only the newest benchmark of each organizer
  • Tests for both rows

Problem example

Screenshot 2026-11-22 at 10 14 04 AM

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

- Popular shows only the most popular benchmark of each organizer
- Recent shows only the newest benchmark of each organizer
- Tests for both rows
@Didayolo Didayolo self-assigned this Nov 22, 2026
@Didayolo
Didayolo self-requested a review November 22, 2026 11:17
@Didayolo

Didayolo commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What about cases where we have only one organizer in the instance, or less than 3 organizers to populate this interface?

@ihsaan-ullah

Copy link
Copy Markdown
Collaborator Author

What about cases where we have only one organizer in the instance, or less than 3 organizers to populate this interface?

That would be rare but if this happens, currently we only see one competition per organizer

@Didayolo

Copy link
Copy Markdown
Member

That would be rare but if this happens, currently we only see one competition per organizer

For our main instance it can't happen, but I am wondering if this could be annoying for other hosters. Typically it is common to have a group deploying their own instance for one group of organizers that creates many competitions. Having only one competition shown is not ideal in that case.

What do you think?

When there are not enough organizers to fill a row, the row is now filled with other benchmarks from the same organizers.
- Popular adds the next most popular benchmarks
- Recent adds the next newest benchmarks
- Added tests to test this new addition
@ihsaan-ullah

Copy link
Copy Markdown
Collaborator Author

The latest commit now addresses this problem. Now we will see competiitons from the same organizers if there are not enough from other organizers

@Didayolo

Copy link
Copy Markdown
Member

Very nice, thank you for your reactivity.

@Didayolo
Didayolo merged commit b983339 into develop Nov 24, 2026
3 checks passed
@Didayolo
Didayolo deleted the home_one_benchmark_per_organizer branch November 24, 2026 06:53
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.

2 participants