Add field to query organizations for a given user
What does this MR do and why?
Related issue: #417892 (closed)
Add field to query organizations for a given user
This is released as Experimental as Organizations is still experimental
Changelog: changed
Screenshots or screen recordings
How to set up and validate locally
-
Add an
OrganizationUser
record. In the rails console:Organizations::OrganizationUser.create!(organization_id: 1, user_id: 1)
-
Run the following graphql query:
query{
user(username: "root") {
organizations {
nodes {
path
}
}
}
}
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 Thong Kuah