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

Show all results publicly #103

Closed
wants to merge 6 commits into from
Closed

Conversation

puqeko
Copy link
Member

@puqeko puqeko commented Apr 17, 2020

Previously students results would only be shown on the public
scoreboard if equal to or better than the median score. I don't see any point to this - we may as well show the preliminary results publicly so people can keep an eye on the scoreboard without logging in.

Obsoleted by #123

Previously students results would only be shown on the public
scoreboard if equal to or better than the median score.
@coveralls
Copy link

coveralls commented Apr 17, 2020

Coverage Status

Coverage increased (+0.01%) to 33.153% when pulling 6a1414a on show-all-public-on-scoreboard into e9f3201 on master.

puqeko and others added 5 commits April 19, 2020 01:24
Remove /usr/bin prefix from compile commands (#70)

Since commit 32dcf29 (add Java support, 2014-12-25), the compilation
commands are executed using bash instead of directly using isolate.
They no longer need the first argument to be the full path to the
compiler.

Note that the interpreter commands are still executed directly using
isolate and need to keep using the full path to the interpreter.

Co-authored-by: Tom Levy <[email protected]>
- Add two boolean feilds to the database
	live_scoreboard: If true, show problem scores on the live scoreboard
	show_unofficial_competitors: Mark non highschool students on scoreboard
- Add these to the contest edit form
- Update the scoreboard page itself

Also:
- Removed the contest info tab because it seems useless
- Set the default tab to scoreboard if logged out
- No longer show Owner ID from contest information
- Use "hours" so that the duration setting is more clear
@puqeko puqeko requested review from Holmes98 and tom93 April 18, 2020 13:35
@puqeko
Copy link
Member Author

puqeko commented Apr 18, 2020

Edit page:
 2020-04-19 at 12 28 53 AM
With problems showing:
 2020-04-19 at 12 27 49 AM
If a competitor is unofficial, they don't count towards the rankings of official competitors. However, their displayed rank will be the rank they would have received had they competed officially.

Without problems showing:
 2020-04-19 at 12 27 20 AM
Link to problem set (at bottom):
 2020-04-19 at 1 37 44 AM

Copy link
Member Author

@puqeko puqeko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo

@@ -27,8 +26,7 @@
<td><%= contest.name %></td>
<td><%= contest.start_time.strftime("%b %d, %H:%M") unless contest.start_time.nil? %></td>
<td><%= contest.end_time.strftime("%b %d, %H:%M") unless contest.end_time.nil? %></td>
<td><%= contest.duration %></td>
<td><%= contest.owner_id %></td>
<td><%= contest.duration %> hours</td>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self reminder to correctly pluralise this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine actually, "1.0 hours" sounds more correct than "1.0 hour".
https://english.stackexchange.com/questions/44489/is-1-0-singular-or-plural

<% end %>
</p>
<% end %>
</p>
Copy link
Member Author

@puqeko puqeko Apr 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline

<p>
<b> Problem set: </b>
<%= link_to @contest.problem_set.name, @contest.problem_set %>
</p>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline

@@ -70,3 +70,6 @@ table.main_table > thead > tr > th {
font-weight: bold;
}

.unofficial > td {
opacity: 0.4;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline

def change
add_column :contests, :show_unofficial_competitors, :boolean, :default => false
end
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline

def change
add_column :contests, :live_scoreboard, :boolean, :default => true
end
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline

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.

3 participants