Add contacts and organizations resolvers
requested to merge zillemarco/gitlab:zillemarco-add-crm-contacts-organizations-serach-resolvers into master
What does this MR do and why?
This MR is related to #350138 (closed) and #350137 (closed) and aims at adding support to filter the organizations and the contacts of a group.
Screenshots or screen recordings
How to set up and validate locally
- Enable the CRM feature on a root group (e.g.:
Gitlab Org
in GDK) - Contacts and organizations should already be seeded, otherwise add some organizations and contacts
- Run this example GraphQL query to filter the contacts
fragment ContactFragment on CustomerRelationsContact {
__typename
id
firstName
lastName
email
}
query {
group(fullPath: "gitlab-org") {
id
contacts {
# contacts(search: "Sc") {
# contacts(state: active) {
nodes {
...ContactFragment
}
}
}
}
- Run this example GraphQL query to filter the organizations
fragment OrganizationFragment on CustomerRelationsOrganization {
__typename
id
name
}
query {
group(fullPath: "gitlab-org") {
id
organizations {
# organizations(search: "br") {
# organizations(state: active) {
nodes {
...OrganizationFragment
}
}
}
}
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 Marco Zille