domjudge icon indicating copy to clipboard operation
domjudge copied to clipboard

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

Open Dup4 opened this issue 1 year ago • 5 comments

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

  • 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?

image

My data source options are set like this.

Dup4 avatar Dec 13 '23 13:12 Dup4

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.

nickygerritsen avatar Dec 13 '23 14:12 nickygerritsen

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

Dup4 avatar Dec 14 '23 00:12 Dup4

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?

vmcj avatar Dec 14 '23 07:12 vmcj

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

Dup4 avatar Dec 14 '23 13:12 Dup4

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.

nickygerritsen avatar Jan 12 '24 10:01 nickygerritsen

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

vmcj avatar May 21 '24 15:05 vmcj

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

2018hahazhufeng avatar May 23 '24 02:05 2018hahazhufeng

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

vmcj avatar May 23 '24 05:05 vmcj