branch filtering inconsistency #8982

Closed
opened 2025-11-02 08:24:48 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @acopxl on GitHub (May 21, 2022).

Description

Branch filtering works differently on different screens. It seems to be working fine on the "Code" page. On "New Pull Request" show branches that seem not to match the string we enter

Screenshots

Screenshot from 2022-05-21 21-26-56
Screenshot from 2022-05-21 21-27-11

Gitea Version

1.16.7

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

No response

Browser Version

Chrome

Originally created by @acopxl on GitHub (May 21, 2022). ### Description Branch filtering works differently on different screens. It seems to be working fine on the "Code" page. On "New Pull Request" show branches that seem not to match the string we enter ### Screenshots ![Screenshot from 2022-05-21 21-26-56](https://user-images.githubusercontent.com/16439545/169666625-c2d76bf8-cc66-491d-9e61-9473748e7b25.png) ![Screenshot from 2022-05-21 21-27-11](https://user-images.githubusercontent.com/16439545/169666627-2cb2bbb1-b646-476f-be87-2417dcb1503d.png) ### Gitea Version 1.16.7 ### Can you reproduce the bug on the Gitea demo site? Yes ### Operating System _No response_ ### Browser Version Chrome
GiteaMirror added the issue/confirmedtopic/uitype/bug labels 2025-11-02 08:24:48 -06:00
Author
Owner

@wxiaoguang commented on GitHub (May 31, 2022):

It's caused by Dropdown's full-search behavior.

https://github.com/fomantic/Fomantic-UI/discussions/1737

e31c6166ee/web_src/js/features/repo-common.js (L110-L115)

Maybe it can be fixed by the suggestion of the discussion : fullTextSearch: 'exact'

@wxiaoguang commented on GitHub (May 31, 2022): It's caused by Dropdown's full-search behavior. https://github.com/fomantic/Fomantic-UI/discussions/1737 https://github.com/go-gitea/gitea/blob/e31c6166ee92c378c84570b2959f2fdb040d438a/web_src/js/features/repo-common.js#L110-L115 Maybe it can be fixed by the suggestion of the discussion : `fullTextSearch: 'exact'`
Author
Owner

@zeripath commented on GitHub (Jun 4, 2022):

Yup exact would stop this fuzzy searching behaviour

@zeripath commented on GitHub (Jun 4, 2022): Yup exact would stop this fuzzy searching behaviour
Author
Owner

@lunny commented on GitHub (Jun 4, 2022):

It's caused by Dropdown's full-search behavior.

fomantic/Fomantic-UI#1737

e31c6166ee/web_src/js/features/repo-common.js (L110-L115)

Maybe it can be fixed by the suggestion of the discussion : fullTextSearch: 'exact'

Do you have plan to send a PR?

@lunny commented on GitHub (Jun 4, 2022): > It's caused by Dropdown's full-search behavior. > > [fomantic/Fomantic-UI#1737](https://github.com/fomantic/Fomantic-UI/discussions/1737) > > https://github.com/go-gitea/gitea/blob/e31c6166ee92c378c84570b2959f2fdb040d438a/web_src/js/features/repo-common.js#L110-L115 > > Maybe it can be fixed by the suggestion of the discussion : `fullTextSearch: 'exact'` Do you have plan to send a PR?
Author
Owner

@wxiaoguang commented on GitHub (Jun 4, 2022):

Use exact search instead of fuzzy search for branch filter dropdown #19885

@wxiaoguang commented on GitHub (Jun 4, 2022): Use exact search instead of fuzzy search for branch filter dropdown #19885
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8982