Allow multiple negated filters for health and author on issue list
What does this MR do and why?
When filtering issues with multiple is not one of
filter criteria for Health
and Author
, GitLab was bugging out.
This MR fixes that, by allowing GraphQL to accept an array of usernames for Author, and an array of Health Statuses for Health.
Screenshots or screen recordings
Before | After |
---|---|
Screen_Recording_2023-10-11_at_11.50.27 |
How to set up and validate locally
- Create several issues in a project
- In the issue list, filter using:
-
Author Username
: Select multiple authors while usingis not one of
-
Health
: Select multiple health statusses while usingis not one of
-
- Confirm that, in both cases, the page correctly filters the issues, and that it does not bug out while on this branch.
For GraphQL, confirm that the below queries work as expected:
- For author username:
query getIssuesEE{
project(fullPath: "group/project") {
issues(not: { authorUsername: ["firstUserName", "secondUserName"] }) {
count
}
}
}
- For health status:
query getIssuesEE{
project(fullPath: "group/project3") {
issues(not: { healthStatusFilter: [onTrack, atRisk] }) {
count
}
}
}
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Joseph Wambua