DOMjudge / domjudge

DOMjudge programming contest jury system
https://www.domjudge.org
GNU General Public License v2.0
709 stars 248 forks source link

In the contestant's clarifications block, the shortname and color of the problem are not displayed correctly. #2279

Closed Dup4 closed 1 month ago

Dup4 commented 7 months ago

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

image

This is the problem I set in the contest, with the correct shortname and color set.

image

This is the Clarifications page in the administrator interface, showing the correct shortname and color.

image

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

Steps to reproduce

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?

image

My data source options are set like this.

nickygerritsen commented 7 months ago

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.

Dup4 commented 7 months ago

Maybe it's because I have two contests?

image

TESTOFFICIAL:

image

Hangzhou_Onsite:

image

I didn't set the correct shortname in the first contest(TESTOFFICIAL).

But our official contest is in the second contest(Hangzhou_Onsite).

vmcj commented 7 months ago

Maybe it's because I have two contests?

image

TESTOFFICIAL:

image

Hangzhou_Onsite:

image

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?

Dup4 commented 7 months ago

I can provide you with a sql dump, but how do I transfer it to you?

nickygerritsen commented 6 months ago

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.

vmcj commented 2 months ago

@Dup4 did you send the dump to @nickygerritsen or can we close this issue?

2018hahazhufeng commented 2 months ago

The same issue happened to me last week. I can also provide a dump in case it's needed.

vmcj commented 2 months ago

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).