Skip to content

The Pulls Request page has incorrect sorting when there are query conditions. #34523

Closed
@seepine

Description

@seepine

Description

visit https://git.example.com/pulls

  1. The sort of pr is
    • A1
    • A2
    • A3
  2. Then A3 has new push, the sort is
    • A3
    • A1
    • A2
  3. Then query the keyword A, the sort is
    • A1
    • A2
    • A3

Gitea Version

1.23.7

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Image

Image

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

MySQL/MariaDB

Activity

badhezi

badhezi commented on May 28, 2025

@badhezi
Contributor

I believe the issue here is that sort query parameter is discarded when a keyword filter is introduced.
created #34559
I also believe the correct behavior is to retain the sort type when searching, i.e you want to see all recently updated PRs that include "X" keyword.

added this to the 1.24.0 milestone on May 28, 2025
added a commit that references this issue on Jun 2, 2025
7aae496
added a commit that references this issue on Jun 2, 2025
d5bbaee
added a commit that references this issue on Jun 2, 2025
f9a0b07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @lunny@badhezi@seepine

      Issue actions

        The Pulls Request page has incorrect sorting when there are query conditions. · Issue #34523 · go-gitea/gitea