-
Notifications
You must be signed in to change notification settings - Fork 256
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
Add option to hide nonloggedin/nonsubmitted teams on the scoreboard #2134
Conversation
IMO closes: #2061 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it especially for online judges /contests with self registration enabled that seems useful.
etc/db-config.yaml
Outdated
@@ -269,6 +269,15 @@ | |||
default_value: false | |||
public: true | |||
description: Show canonical compiler and runner version on the team pages. | |||
- name: hide_teams_scoreboard_condition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider phrasing these in a positive form, e.g. show_teams_on_scoreboard: always, after_login, after_submission
Note that the autologin tool should only set last API login, not last UI login. |
I thought so but I was not sure, but still I think people can come up with an usecase for both. I'm fine with making this a boolean but than I need to know which one we prefer. |
I think the 3 options are totally fine. |
As discussed in Slack, I'll also fix the issue where when you use only the submit client I'll still put you on the scoreboard as you did a login via the API (but need to see if I should check for users with !(GUI OR submission) or on both login fields (and get the GEHACK scenario) |
I'll fix it tonight and wait for @ubergeek42 if this is indeed a fix to his issue. |
This sounds like it'd fix the issue we saw at NAC |
119859e
to
8b47fb9
Compare
Done as a config option for the following 2 cases: - Normally you want a team which has logged on on the scoreboard - In case of the autologin tool of GEHACK/Nicky the user would also login without interaction of the actual team
Alternative would be to UNION over teams which submitted and teams which did a GUI logon but that is more expensive.
8b47fb9
to
51f5364
Compare
… scoreboard (DOMjudge#2134) * Add option to hide nonloggedin/nonsubmitted teams on the scoreboard Done as a config option for the following 2 cases: - Normally you want a team which has logged on on the scoreboard - In case of the autologin tool of GEHACK/Nicky the user would also login without interaction of the actual team * Allow API logon as the submit client uses it Alternative would be to UNION over teams which submitted and teams which did a GUI logon but that is more expensive.
… scoreboard (DOMjudge#2134) * Add option to hide nonloggedin/nonsubmitted teams on the scoreboard Done as a config option for the following 2 cases: - Normally you want a team which has logged on on the scoreboard - In case of the autologin tool of GEHACK/Nicky the user would also login without interaction of the actual team * Allow API logon as the submit client uses it Alternative would be to UNION over teams which submitted and teams which did a GUI logon but that is more expensive.
… scoreboard (DOMjudge#2134) * Add option to hide nonloggedin/nonsubmitted teams on the scoreboard Done as a config option for the following 2 cases: - Normally you want a team which has logged on on the scoreboard - In case of the autologin tool of GEHACK/Nicky the user would also login without interaction of the actual team * Allow API logon as the submit client uses it Alternative would be to UNION over teams which submitted and teams which did a GUI logon but that is more expensive.
… scoreboard (DOMjudge#2134) * Add option to hide nonloggedin/nonsubmitted teams on the scoreboard Done as a config option for the following 2 cases: - Normally you want a team which has logged on on the scoreboard - In case of the autologin tool of GEHACK/Nicky the user would also login without interaction of the actual team * Allow API logon as the submit client uses it Alternative would be to UNION over teams which submitted and teams which did a GUI logon but that is more expensive.
… scoreboard (DOMjudge#2134) * Add option to hide nonloggedin/nonsubmitted teams on the scoreboard Done as a config option for the following 2 cases: - Normally you want a team which has logged on on the scoreboard - In case of the autologin tool of GEHACK/Nicky the user would also login without interaction of the actual team * Allow API logon as the submit client uses it Alternative would be to UNION over teams which submitted and teams which did a GUI logon but that is more expensive.
… scoreboard (DOMjudge#2134) * Add option to hide nonloggedin/nonsubmitted teams on the scoreboard Done as a config option for the following 2 cases: - Normally you want a team which has logged on on the scoreboard - In case of the autologin tool of GEHACK/Nicky the user would also login without interaction of the actual team * Allow API logon as the submit client uses it Alternative would be to UNION over teams which submitted and teams which did a GUI logon but that is more expensive.
… scoreboard (DOMjudge#2134) * Add option to hide nonloggedin/nonsubmitted teams on the scoreboard Done as a config option for the following 2 cases: - Normally you want a team which has logged on on the scoreboard - In case of the autologin tool of GEHACK/Nicky the user would also login without interaction of the actual team * Allow API logon as the submit client uses it Alternative would be to UNION over teams which submitted and teams which did a GUI logon but that is more expensive.
This is a config option as a config option for the following 2 cases:
I've tested it manually and it works.