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

Add option to hide nonloggedin/nonsubmitted teams on the scoreboard #2134

Merged
merged 2 commits into from
Sep 3, 2023

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Aug 31, 2023

This is a config option 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

I've tested it manually and it works.

@vmcj vmcj requested a review from ubergeek42 August 31, 2023 19:04
@vmcj
Copy link
Member Author

vmcj commented Aug 31, 2023

IMO closes: #2061

Copy link
Member

@meisterT meisterT left a 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.

@@ -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
Copy link
Member

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

@nickygerritsen
Copy link
Member

This is a config option 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

I've tested it manually and it works.

Note that the autologin tool should only set last API login, not last UI login.

@vmcj
Copy link
Member Author

vmcj commented Sep 1, 2023

This is a config option 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

I've tested it manually and it works.

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.

@nickygerritsen
Copy link
Member

I think the 3 options are totally fine.

@vmcj
Copy link
Member Author

vmcj commented Sep 1, 2023

This is a config option 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

I've tested it manually and it works.

Note that the autologin tool should only set last API login, not last UI login.

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)

@vmcj
Copy link
Member Author

vmcj commented Sep 1, 2023

I'll fix it tonight and wait for @ubergeek42 if this is indeed a fix to his issue.

@ubergeek42
Copy link
Member

This sounds like it'd fix the issue we saw at NAC

@vmcj vmcj force-pushed the hide_teams_login_submission branch from 119859e to 8b47fb9 Compare September 2, 2023 22:50
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.
@vmcj vmcj force-pushed the hide_teams_login_submission branch from 8b47fb9 to 51f5364 Compare September 3, 2023 08:07
@vmcj vmcj merged commit f989426 into DOMjudge:main Sep 3, 2023
17 checks passed
@vmcj vmcj deleted the hide_teams_login_submission branch September 3, 2023 08:08
tom93 pushed a commit to tom93/domjudge that referenced this pull request Jul 25, 2024
… 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.
tom93 pushed a commit to tom93/domjudge that referenced this pull request Jul 26, 2024
… 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.
tom93 pushed a commit to tom93/domjudge that referenced this pull request Aug 5, 2024
… 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.
tom93 pushed a commit to tom93/domjudge that referenced this pull request Aug 5, 2024
… 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.
tom93 pushed a commit to tom93/domjudge that referenced this pull request Aug 5, 2024
… 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.
tom93 pushed a commit to tom93/domjudge that referenced this pull request Aug 5, 2024
… 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.
tom93 pushed a commit to tom93/domjudge that referenced this pull request Aug 15, 2024
… 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.
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

Successfully merging this pull request may close these issues.

4 participants