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 problem type voting feature #386

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Apr 9, 2024

  1. Add problem type voting feature

    Solved users are able to suggest problem types. These votes are aggregated per-type and the numbers are shown in the problem edit.
    
    Only public problems (is_public=True and is_organization_private=False) are able to use this feature.
    
    Migration: set type voting as default for all public problems
    magnified103 committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    7a4cc9d View commit details
    Browse the repository at this point in the history
  2. Add automated problem type voting

    If the number of distinct voters exceeds VNOJ_PROBLEM_TYPE_VOTING_VOTERS_THRESHOLD:
      - Sort the votes of each type in descending order
      - Filter the types whose number of votes exceeds VNOJ_PROBLEM_TYPE_VOTING_VOTES_LOWERBOUND
      - Get the first VNOJ_PROBLEM_TYPE_VOTING_TYPES_UPPERBOUND records
    magnified103 committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    9438621 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b683ce7 View commit details
    Browse the repository at this point in the history