You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, the ListIssues sets the IncludedLabelIDs, not the IncludedAnyLabelIDs option.
There is also a similar API, called SearchIssues, which used to behave the same (in 887a8fe). But that has been refactored to use IncludedAnyLabelIDs (1e76a82 and d638067).
Now SearchIssues has proper English ("these labels"),
and SearchIssues does what it promises (do an OR-search).
It would be nice if ListIssues either:
Has the same labels search behaviour,
or updates the documentation.
Thanks!
Walter Doekes
OSSO B.V.
Gitea Version
main/7e596bd7a9378cadbbd9efaf9cc622de554e056c
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
linux
How are you running Gitea?
(running downloaded gitea 1.21.5)
Database
None
The text was updated successfully, but these errors were encountered:
Well. You'll always disappoint one group of users. You could also certainly argue for the inverse and let people filter their results. It depends on what one considers the costliest: is filtering a resultset worse than having to do two queries and merge the results?
Is there a reason why there is an OR-search in the SearchIssues API now? And what were the considerations when the feature(s) were added?
TBH: no idea ..... I am not quite familiar with the "search" logic (some code/decisions are before I started coding in Gitea), maybe some people who have more experiences could help.
Description
In 024871a the following was added:
(which now looks like this since 1e76a82)
These end up in
./modules/indexer/issues/meilisearch/meilisearch.go
:So, the
ListIssues
sets theIncludedLabelIDs
, not theIncludedAnyLabelIDs
option.There is also a similar API, called
SearchIssues
, which used to behave the same (in 887a8fe). But that has been refactored to useIncludedAnyLabelIDs
(1e76a82 and d638067).It would be nice if ListIssues either:
Thanks!
Walter Doekes
OSSO B.V.
Gitea Version
main/7e596bd7a9378cadbbd9efaf9cc622de554e056c
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
linux
How are you running Gitea?
(running downloaded gitea 1.21.5)
Database
None
The text was updated successfully, but these errors were encountered: