DOMjudge / domjudge

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

Problem import message shows on wrong page #2159

Open eldering opened 9 months ago

eldering commented 9 months ago

Description of the problem

While importing problems into a new contest (from problem zip files), the message of problem id 108 showed up on the result page for problem 107, together with the message of problem 107 itself.

Your environment

DOMjudge version 8.0 running on CentOS 8

Steps to reproduce

This only happened once out of 12-13 problems imported, so it seems not consistently reproducible.

Expected behaviour

Each message shows on the page of that problem itself.

Actual behaviour

nickygerritsen commented 9 months ago

It shows on the first page that is rendered, so this is a synchronization thing. Unless we use a separate error block for each problem (of which I don’t know the downsides) I don’t think there is much we can do

eldering commented 9 months ago

Ok, indeed: now it shows on the submissions page.

I'd say it would be good to fix this. It looks really strange to see this message on a page it really doesn't belong.

nickygerritsen commented 9 months ago

For this to be fixed we need to:

Seems doable (search for “flash” in all controllers). Just a lot of work.

Anyone interested is welcome to create a PR, otherwise I can take a look but probably only after finals since we have plenty stuff to do that seems more important.

eldering commented 9 months ago

Sure. I agree this is not very important, but would be good to fix. Maybe at a hackathon or so.