DOMjudge / domjudge

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

Reloading contest page does not reload button state #2460

Open eldering opened 2 months ago

eldering commented 2 months ago

Description of the problem

https://onlinejudge.icpc.global/jury/contests/3

Your environment

DOMjudge wfluxor-online branch, but pretty sure it's the same on current main.

Steps to reproduce

  1. Open https://onlinejudge.icpc.global/jury/contests/3 or a similar contest URL.
  2. Open in a separate window https://onlinejudge.icpc.global/jury/contests/3/edit
  3. On the edit page, change the Enable public scoreboard setting.
  4. Reload the first window (on Firefox with Linux, I use ctrl+R or F5).

Expected behaviour

I expect to see the changed state of the Enable public scoreboard setting reflected on the first page, but I don't. Only when I go to the URL bar and press enter there, I do see the change. The same is true for the contests overview page.

This is very confusing.

nickygerritsen commented 2 months ago

Huh this is weird. How does a refresh not update this…. I will investigate

nickygerritsen commented 1 month ago

I can't seem to reproduce this locally...