You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
random effect of box 'disable all submissions' #3142
This issue comes after the PR #3135 has been merged on develop and set on pre-prod and prod servers:
After applying migrations and launching new dockers, the box can is seen by a platform admin and can be ticked.
But the behavior is not stable: on pre-prod server as well as on py3 production server, submissions are sometimes blocked, sometimes not.
Nothing obvious can explain the difference.
There's a bug I did not catch when I tested this, but the behavior is not consistent. It seems to always work on the first try, but subsequent tries do not.
The value (settings.DISABLE_ALL_SUBMISSIONS) is set per worker in-memory instead of being retrieved from the DB or set via a config file. The reference to what is being checked can probably be changed to fix the issue as it is also tied into the DB by a model. Tristan was mainly following the pattern Eric had done for this, but in this case it seems there may be an unintended bug.
Activity
Didayolo commentedon Apr 7, 2022
Some news from Tyler:
There's a bug I did not catch when I tested this, but the behavior is not consistent. It seems to always work on the first try, but subsequent tries do not.
The value (
settings.DISABLE_ALL_SUBMISSIONS) is set per worker in-memory instead of being retrieved from the DB or set via a config file. The reference to what is being checked can probably be changed to fix the issue as it is also tied into the DB by a model. Tristan was mainly following the pattern Eric had done for this, but in this case it seems there may be an unintended bug.Didayolo commentedon Apr 7, 2022
Even if the box is unchecked, an user reported a submission blocked: #3146