domjudge
domjudge copied to clipboard
In the contestant's clarifications block, the shortname and color of the problem are not displayed correctly.
NOTE: If this is a discussion starter, you need any installation help or have a question on how to accomplish something, rather post at our discussion channel or send an email to our DOMjudge-devel mailinglist instead of filing an issue here.
Description of the problem
This is the problem I set in the contest, with the correct shortname and color set.
This is the Clarifications page in the administrator interface, showing the correct shortname and color.
But this is the Clarifications page in the contestant's interface, and it doesn't show the correct shortname and color.
This should be the shortname of the problem.
Your environment
- DOMjudge: 8.2.2
- OS: Ubuntu22.04
- webserver: nginx
Steps to reproduce
- create a contest.
- send a clarification in contestant's interface.
Expected behaviour
Replace this line with what you would expect to happen.
On the Clarifications page in the contestant's interface, the correct shortname and color are shown.
Actual behaviour
Replace this line with what happens instead.
The Clarifications page in the contestant's interface currently shows the externalid of the title and the color black.
Any other information that you want to share?
My data source options are set like this.
I tried reproducing this on 8.2.2, but I can't, even with that data source option. A dump of relevant tables of your database might help.
Maybe it's because I have two contests?
TESTOFFICIAL:
Hangzhou_Onsite:
I didn't set the correct shortname in the first contest(TESTOFFICIAL).
But our official contest is in the second contest(Hangzhou_Onsite).
Maybe it's because I have two contests?
TESTOFFICIAL:
Hangzhou_Onsite:
I didn't set the correct shortname in the first contest(TESTOFFICIAL).
But our official contest is in the second contest(Hangzhou_Onsite).
You are aware that the color (and shortname) for a problem is set per contest? So it would really be helpful for us to get a dump so we can easily check what is set.
If I understand you correctly you have the datasource to 1, but expect in the contestant interface that the shortname is shown? We display the externalID by design for this mode as to any outsider (either contestant or a downstream client) we use the externalID, and only internally (for us as admin maybe jury or in the database) we might use the internal identifier.
Also the color in the TESTOFFICIAL is for all problems set to black, that is the same as what we see for the contestant when they are in that contest? Have you set specific colors for that problem already? Are the problems shared over multiple contests?
I can provide you with a sql dump, but how do I transfer it to you?
I can provide you with a sql dump, but how do I transfer it to you?
The best option is to send it in a PM in Slack I think.
@Dup4 did you send the dump to @nickygerritsen or can we close this issue?
The same issue happened to me last week. I can also provide a dump in case it's needed.
The same issue happened to me last week. I can also provide a dump in case it's needed.
That would be helpful, you can send it to one of us on Slack (or share it via pastebin for example).