Add active/state to CRM graphql queries/mutations
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/
- Enable crm feature flag
- Enable crm for a root group
- If you don't already have a contact in the root group, create one or run
bundle exec rake db:seed_fu FILTER=crm
- 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
}
}