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

Perform Newest sort type correctly when sorting issues (#30644) #30847

Merged
merged 1 commit into from
May 3, 2024

Commits on May 3, 2024

  1. Perform Newest sort type correctly when sorting issues (go-gitea#30644)

    Should resolve go-gitea#30642.
    
    Before this commit, we were treating an empty `?sort=` query parameter
    as the correct sorting type (which is to sort issues in descending order
    by their created UNIX time). But when we perform `sort=latest`, we did
    not include this as a type so we would sort by the most recently updated
    when reaching the `default` switch statement block.
    
    This commit fixes this by considering the empty string, "latest", and
    just any other string that is not mentioned in the switch statement as
    sorting by newest.
    kemzeb authored and GiteaBot committed May 3, 2024
    Configuration menu
    Copy the full SHA
    90a8451 View commit details
    Browse the repository at this point in the history