-
Notifications
You must be signed in to change notification settings - Fork 275
Show list of submissions on public and team scoreboards when clicking on a cell #2918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show list of submissions on public and team scoreboards when clicking on a cell #2918
Conversation
🔍 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 👎 |
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 |
@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? |
…d time of a contest
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: Jaap Eldering <eldering@users.noreply.github.com>
Also drop time tie breaker column.
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>
35d8904
to
c1fcd84
Compare
I tested a bit locally with the WFAstana dump and there is a performance impact when loading all this data. So I decided to rewrite this: now it loads data from a JSON endpoint and then populates the modal from there. It has two ways of doing this:
Note that for easier javascript logic I always filter the submission list on team/problem, even if we only request one cell. This doesn't hurt. Also note that this means that we now need to download 2 files every time we update a static scoreboard (the HTML and the JSON) but I think that's fine. |
c1fcd84
to
0234c25
Compare
Seems to affect the behavior of clicking the scoreboard under |
Thanks for catching. Will investigate and fix, since that shouldn't happen. |
Fixes #2427