Skip to content

Pull request search shows merged PRs in Open tab #30684

@otbutz

Description

@otbutz

Description

Searching for a PR lists merged pull requests in the tab Open. The count is correct though.

Reproducer:

https://try.gitea.io/otbutz99/test/pulls?state=open&q=Add

Gitea Version

1.21.11

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

2024-04-24_13-31

Git Version

No response

Operating System

No response

How are you running Gitea?

Github binary started via systemd behind a caddy reverse proxy.

Database

PostgreSQL

Activity

Zettat123

Zettat123 commented on Apr 25, 2024

@Zettat123
Contributor

The results are correct when searching with no keywords. So I think the bug might be related to the issue indexer.
Can you try to rebuild issue indexer then check the search results?

(It is in Site Administration > Monitoring > Cron Tasks)

otbutz

otbutz commented on Apr 25, 2024

@otbutz
Author

Can you try to rebuild issue indexer then check the search results?

Same result.

So I think the bug might be related to the issue indexer.

I can reproduce it locally and on try.gitea.io.

wolfogre

wolfogre commented on Apr 26, 2024

@wolfogre
Member

I have "Rebuild issue indexer" on try.gitea.io, the index has been fixed now.

This is not to say that bugs do not exist, but to help maintainers determine the cause of the problem.

This is a screenshot before I rebuilt the index.

xnip_240426_140938
added
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implemented
on Apr 26, 2024
otbutz

otbutz commented on Apr 26, 2024

@otbutz
Author

@wolfogre thanks! I tried to reproduce it again locally and things are now working as expected. Perhaps I was a bit impatient and refreshed before the task was actually finished. Either way, I can confirm that the cause is the outdated index.

added this to the 1.21.12 milestone on Apr 28, 2024
added a commit that references this issue on May 8, 2024
f09e68e
added a commit that references this issue on May 8, 2024
fd4cf0b
added a commit that references this issue on May 9, 2024
a8c741e
added a commit that references this issue on May 9, 2024
df55139
added a commit that references this issue on May 9, 2024
17c6a38
locked as resolved and limited conversation to collaborators on Aug 7, 2024
added a commit that references this issue on Jan 23, 2025
65529bd
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

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @lunny@wolfogre@Zettat123@otbutz

      Issue actions

        Pull request search shows merged PRs in Open tab · Issue #30684 · go-gitea/gitea