Allow filtering issues by any assignee#33343
Conversation
This is the opposite of the "No assignee" filter. It will match all issues that have at least one assignee.
I searched the code base to find where there was special logic for the Looking at |
|
Without a complete refactoring, I could accept a non-conflicting magic number other than -2 at the moment (see the NonExistingID below), and I think it needs some tests to cover the behavior. |
|
Will take a look in a few days. Update: maybe need some more time, I will try to refactor the "assignee" to a meaningful string, to avoid using these strange magic numbers. |
eaacdf3 to
9576848
Compare
|
CI passes and ready for review |
I like it. Thanks for picking up the torch and doing the work to get rid of the magic numbers 👍 |
* giteaofficial/main: [skip ci] Updated translations via Crowdin Only use prev and next buttons for pagination on user dashboard (go-gitea#33981) update jwt and redis packages (go-gitea#33984) [skip ci] Updated translations via Crowdin Improve oauth2 error handling (go-gitea#33969) [skip ci] Updated translations via Crowdin Cover `go.mod` and `go.sum` in `.editorconfig` (go-gitea#33960) Drop timeout for requests made to the internal hook api (go-gitea#33947) Fix file name could not be searched if the file was not a text file when using the Bleve indexer (go-gitea#33959) Fix oauth2 auth and UI (go-gitea#33961) Allow filtering issues by any assignee (go-gitea#33343) Optimize total count of feed when loading activities in user dashboard. (go-gitea#33841) Extract code to their own functions for push update (go-gitea#33944) Optimize heatmap query (go-gitea#33853)
This is the opposite of the "No assignee" filter, it will match all issues that have at least one assignee.
Before

After
