Enable users to fetch all WorkItems they have access through GraphQL
What does this MR do and why?
Enable users to fetch all WorkItems they have access through GraphQL, similar to the existing issues query.
Example Query | Example Response |
---|---|
query q { workItems(state: opened) { nodes { iid } } } |
{ "data": { "workItems": { "nodes": [{ "iid": "9" }, ... |
References
MR acceptance checklist
-
You have self-reviewed this MR per code review guidelines. -
The code follows the software design guidelines. -
Ensure automated tests exist following the testing pyramid. Add missing tests or create an issue documenting testing gaps. -
You have considered the technical impacts on GitLab.com, Dedicated and self-managed. -
You have considered the impact of this change on the frontend, backend, and database portions of the system where appropriate and applied the ~ux, frontend, backend, and database labels accordingly. -
You have tested this MR in all supported browsers, or determined that this testing is not needed. -
You have confirmed that this change is backwards compatible across updates, or you have decided that this does not apply. -
You have properly separated EE content (if any) from FOSS. Consider running the CI pipelines in a FOSS context. -
You have considered that existing data may be surprisingly varied. For example, if adding a new model validation, consider making it optional on existing data. -
You have fixed flaky tests related to this MR, or have explained why they can be ignored. Flaky tests have error Flaky test '<path/to/test>' was found in the list of files changed by this MR. but can be in jobs that pass with warnings.
Screenshots or screen recordings
Not provided
How to set up and validate locally
- In a browser, on a device with the GDK running, navigate to http://localhost:3000/-/graphql-explorer
- Write a query to fetch work items (with at least 1 filter provided). e.g.
query q {
workItems(state: opened) {
nodes {
id
}
}
}
- Observe that work items are returned for which the current user has access to, across projects
Merge request reports
Activity
changed milestone to %17.9
assigned to @kassio
added pipelinetier-1 label
added backend documentation labels
1 Warning d69090e4: Commits that change 30 or more lines across at least 3 files should describe these changes in the commit body. For more information, take a look at our Commit message guidelines. 1 Message This merge request adds or changes documentation files and requires Technical Writing review. The review should happen before merge, but can be post-merge if the merge request is time sensitive. Documentation review
The following files require a review from a technical writer:
-
doc/api/graphql/reference/_index.md
(Link to current live version)
The review does not need to block merging this merge request. See the:
-
Metadata for the
*.md
files that you've changed. The first few lines of each*.md
file identify the stage and group most closely associated with your docs change. - The Technical Writer assigned for that stage and group.
- Documentation workflows for information on when to assign a merge request for review.
Reviewer roulette
Category Reviewer Maintainer backend @ibaum
(UTC-6, 7 hours behind author)
@engwan
(UTC+8, 7 hours ahead of author)
Please refer to documentation page for guidance on how you can benefit from the Reviewer Roulette, or use the GitLab Review Workload Dashboard to find other available reviewers.
If needed, you can retry the
danger-review
job that generated this comment.Generated by
DangerEdited by ****-
added 661 commits
-
a93f0a47...82a6a849 - 659 commits from branch
master
- c8526226 - Enable users to fetch all WorkItems they have access through GraphQL
- f7c2261f - Add missing field on test
-
a93f0a47...82a6a849 - 659 commits from branch
added 265 commits
-
f7c2261f...341878be - 263 commits from branch
master
- b0d3d78e - Enable users to fetch all WorkItems they have access through GraphQL
- 5057d940 - Add missing field on test
-
f7c2261f...341878be - 263 commits from branch
added 303 commits
-
3391db42...00283dae - 299 commits from branch
master
- a707ef9d - Enable users to fetch all WorkItems they have access through GraphQL
- 3c3248d6 - Add missing field on test
- 0810685b - Fix some tests
- db115f7a - Fix more tests
Toggle commit list-
3391db42...00283dae - 299 commits from branch
added 1241 commits
-
db115f7a...78807d04 - 1240 commits from branch
master
- 47932b69 - Enable users to fetch all WorkItems they have access through GraphQL
-
db115f7a...78807d04 - 1240 commits from branch
added 1083 commits
-
47932b69...7f824321 - 1082 commits from branch
master
- 0e4cc2d8 - Enable users to fetch all WorkItems they have access through GraphQL
-
47932b69...7f824321 - 1082 commits from branch
assigned to @mdangelo6
added 1 commit
- fd9fd0a1 - Use ::WorkItems::SharedFilterArguments, update specs
added 1924 commits
-
fd9fd0a1...aeeed832 - 1920 commits from branch
master
- b5224643 - Enable users to fetch all WorkItems they have access through GraphQL
- 10b7d722 - Move work_items query to seperate resolver
- 0dbded78 - Use ::WorkItems::SharedFilterArguments, update specs
- 1e20b259 - Use new ::Types::WorkItems::SortEnum
Toggle commit list-
fd9fd0a1...aeeed832 - 1920 commits from branch
- Resolved by Matt D'Angelo
- Resolved by Matt D'Angelo