Skip to content

Dashboard - Added a new Competitions Serializer for faster loading time - #2755

Merged
Didayolo merged 5 commits into
developfrom
dashboard-serializer
Nov 20, 2026
Merged

Didayolo merged 5 commits into
developfrom
dashboard-serializer

Conversation

@Didayolo

@Didayolo Didayolo commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Original PR: #2735

Description

  • Added a new competition Serializer with only the information needed in the dashboard page
  • Dashboard page now uses a new API endpoint at /api/dashboard/ to get competitions data
  • Added lazy-loading of public / private competitions for staff/super users on the dashboard page

Theses improvements on the dashboard page should reduce its loading time from ~20s down to ~1.5s for a Codabench instance with approximately 5000 competitions in it.

A checklist for hand testing

  • Compare loading time of the Dashboard page before and after this modification
  • Verify that the number of loaded competitions in the dashboard page is correct
  • Check with a staff/super user account that only public competitions are fetched by default on the dashboard.
  • Check with a staff/super user account that private competitions are fetched only after selecting private or all in the visibility filter.

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

@Didayolo
Didayolo force-pushed the dashboard-serializer branch from 0de5c21 to 189bc86 Compare November 20, 2026 17:09
@Didayolo
Didayolo merged commit 7f9ae13 into develop Nov 20, 2026
3 checks passed
@Didayolo
Didayolo deleted the dashboard-serializer branch November 20, 2026 17:21
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