-
Notifications
You must be signed in to change notification settings - Fork 266
Show list of submissions on public and team scoreboards when clicking on a cell #2918
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Show list of submissions on public and team scoreboards when clicking on a cell #2918
Conversation
…d time of a contest
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: webapp/src/Controller/PublicController.php
Did you find this useful? React with a 👍 or 👎 |
Co-authored-by: MCJ Vasseur <14887731+vmcj@users.noreply.github.com>
Co-authored-by: MCJ Vasseur <14887731+vmcj@users.noreply.github.com>
Is it reasonable to see the specific judging results (during the contest) (rather than AC and RJ) on the public list? The current API cannot obtain the specific results without admin/jury role. This seems to provide additional information to the team. |
Through which API endpoint can a team (or the public) see the exact verdicts (e.g. TLE) through the API for submissions of other teams? |
The judgement API is public info for all submissions pre-freeze, which shows this information. |
@nickygerritsen I think @cubercsl 's comment is that we show more in the API than here, so we should also include that info. I would rather consider it a bug in the API if we would show more, than to expose it here. Regardless, I don't actually think we expose more since you only have access to the judgements endpoint when authenticated and as a team you get only info about your own submissions. Try running something like this:
@cubercsl let me know if you are thinking of a different endpoint since this one is behaving like it should. |
Wait but then we do show more in the UI now, since you can see TLE for other teams in the pop-up. Should we change it to show only accepted / rejected / pending? |
Argh, and rereading the comment above, this was exactly what @cubercsl mentioned. So ignore my previous comments and we should change this to Accepted and Rejected or similar. |
Note that the API not being publicly accessible is not in line with the ICPC contest access policy, but I do agree we should be in sync between API and UI. Will fix |
Co-authored-by: Jaap Eldering <eldering@users.noreply.github.com>
Also drop time tie breaker column.
$submissions = $this->submissionService->getSubmissionList( | ||
[$contest->getCid() => $contest], | ||
new SubmissionRestriction(valid: true), | ||
paginated: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For long running contests we would still get a long list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For one team? We would if the team submits a lot. We can add this behind an option if this becomes a problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the modal scrollable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not, it's sorted by submission time in decreasing order.
Co-authored-by: MCJ Vasseur <14887731+vmcj@users.noreply.github.com>
Co-authored-by: MCJ Vasseur <14887731+vmcj@users.noreply.github.com>
Co-authored-by: MCJ Vasseur <14887731+vmcj@users.noreply.github.com>
@nickygerritsen can I squash it or will you force push yourself? |
You do it, that's fine |
Exporting all team submissions on the static public scoreboard will significantly increase the size of the HTML file (they are not lazy loading). Will this affect the performance? |
That is a good question. Do you have a big scoreboard to test on? Alternative is we use a separate page for this, but that means the static scoreboad is not a single page anymore. |
What about performance? |
Fixes #2427