Skip to content

Add active/state to CRM graphql queries/mutations

Lee Tickett requested to merge 2256-add-active-to-crm-graphql into master

This MR adds the state/active flag to the CRM contact and organization types (e.g. queries) and the contact and organization update mutations.

Related to #2256

Validation

https://docs.gitlab.com/ee/user/crm/

  1. Enable crm feature flag
  2. Enable crm for a root group
  3. If you don't already have a contact in the root group, create one or run bundle exec rake db:seed_fu FILTER=crm
  4. Try goggling the active state of a contact:
mutation {
  customerRelationsContactUpdate(input:
    {
      id: "gid://gitlab/CustomerRelations::Contact/2146"
      active: false
    }) {
    contact {
      id
      firstName
      lastName
      description
      active
      email
      phone
      createdAt
      updatedAt
    }
    errors
  }
}

Merge request reports

Loading