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

Refactor logic for hiding scores below median #118

Closed
wants to merge 3 commits into from

Conversation

tom93
Copy link
Contributor

@tom93 tom93 commented Apr 25, 2020

Depends on #117.
No change in behaviour.
(May soon become obsolete because #103 proposes to show all scores, but I'd like to do this refactoring anyway)

Previous: IF not-signed-in OR (not-row-of-current-user AND not-admin) THEN hide
Proposed: UNLESS signed-in AND (row-of-current-user OR admin) THEN hide

In other words, the row of the currently signed-in user is always shown, and admins always see the full scoreboard.

(Regarding review: This branch will need to be updated after #117 is merged to resolve conflicts, and that will dismiss reviews. So may as well wait until then before approving.)

@coveralls
Copy link

Coverage Status

Coverage remained the same at 33.139% when pulling eaa3c9a on refactor-logic-for-hiding-scores-below-median into 843d01e on master.

@tom93 tom93 mentioned this pull request Feb 6, 2021
@Holmes98 Holmes98 closed this Jan 15, 2022
@tom93 tom93 deleted the refactor-logic-for-hiding-scores-below-median branch February 18, 2023 13:41
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