Add work items resolver
What does this MR do and why?
Exposes work items for a project, very similar to listing issues for a project. Because this is needed for #362860 (closed) it adds only bare minimum filtering (searching by title and type and sorting by title).
Related to #363299 (closed)
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- In rails console enable the feature
Feature.enable(:work_items)
- Test with graphql query like this:
query {
project(fullPath: "flightjs/flight") {
workItems(types: ISSUE, state: opened, search: "asd", first: 5, sort: TITLE_ASC) {
nodes {
id
title
}
}
}
}
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 Jan Provaznik