mooshak-dcc / mooshak-2

Mooshak is a system for managing programming contests on the Web. Mooshak's basic features include automatic judging of submitted programs, answering to clarification questions about problem descriptions, reevaluation of programs, tracking printouts, among many others.
https://mooshak2.dcc.fc.up.pt/
4 stars 0 forks source link

Hide Listing is not working #3

Open wahyudierwin opened 1 month ago

wahyudierwin commented 1 month ago

Hi, @josepaiva94 .

I have a problem with hide listing. To begin with, I want a contest that freezes from the beginning of the contest, let's say the contest's duration is 1 hour. Hide Listing is supposed to be filled with minutes (according to the tooltip). However, based on the following line: https://github.com/mooshak-dcc/mooshak-2/blob/main/src/main/java/pt/up/fc/dcc/mooshak/content/types/Contest.java#L990, the field must be filled with "seconds" instead of "minutes". After I filled the field with 3600 (60 minutes = 3600 seconds), the freeze is still not working. I don't have any problem with the logic implemented here: https://github.com/mooshak-dcc/mooshak-2/blob/main/src/main/java/pt/up/fc/dcc/mooshak/content/types/Contest.java#L1412, but I don't get why it is not working as expected.

Any help would be much appreciated.

Regards, Erwin

josepaiva94 commented 1 month ago

Hi @wahyudierwin ,

I want a contest that freezes from the beginning of the contest, let's say the contest's duration is 1 hour.

Listing freezes hideListings seconds before contest stops. Tip wrongly mentions "minutes", we'll fix that. Thank you.

Is your contest virtual?

wahyudierwin commented 1 month ago

Hi @josepaiva94 , thanks for the quick reply.

FYI, my contest is not virtual. By "freezes from the beginning" means if the contest's duration is 1 hour, then I want to set hideListings to 3600. However, it does not work (I still can see the ranking and submission update from other users). This is the setting of the contest. image

I installed Mooshak by using Docker and chose the starter version.

wahyudierwin commented 1 month ago

Hi @josepaiva94 , are you able to reproduce the contest and get the bug?

josepaiva94 commented 1 month ago

Hi @wahyudierwin ,

Yes, I will fix this as soon as possible.