Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contest observation mode "private" has same effect as "protected" #107

Open
tom93 opened this issue Apr 22, 2020 · 0 comments
Open

Contest observation mode "private" has same effect as "protected" #107

tom93 opened this issue Apr 22, 2020 · 0 comments

Comments

@tom93
Copy link
Contributor

tom93 commented Apr 22, 2020

As far as I can tell by looking at the code, setting the contest observation to "private" actually has the same effect as "protected".

The field was added in commit fb341af with the comment

for observers: public (everyone), protected (groups it is added to even if not competing), private (only if competing)

The logic was added in commit b298d94, and only checks if the field is set to "public"; otherwise the behaviour matches the description of "protected".

I don't understand how "private" as defined in the original comment is useful. The main impact is that it hides the scoreboard at the end of the contest, which doesn't seem useful.

It almost helps with an issue discussed in chat:

users that start later have a slight advantage in terms of information, since they are able to see which problems/subtasks have been solved by more users

However, to solve this issue "private" would need to only show the scoreboard after the user finished competing (as opposed to during), and I don't think it makes sense to use the observation field for that; we should use a separate field as prototyped in #103.

I suggest we either

  1. Combine "private" and "protected" into a single option called "private", with the current behaviour of non-public contests; or
  2. Fix the code to match the documentation (i.e. if observation set to private, only show the scoreboard to users who are currently competing in that contest).

Related: Filelinks also have public/protected/private visibility, where "protected" means the user can view the file if not competing. See issue #106 for discussion.

tom93 added a commit that referenced this issue Feb 7, 2021
…eflect current behaviour

"Protected" and "Private" actually have the same behaviour at the
moment (#107). Document the current behaviour until this is fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant