Skip to content

Enable CRM by default for new groups

What does this MR do and why?

Relates to Customer Database "for Service Desk" (or otherw... (#2256)

This MR defaults the CRM group setting to enabled for all newly created groups and subgroups.

Migrations

lee@Lees-MBP gitlab % bundle exec rails db:migrate
Attention: used pure ruby version of MurmurHash3
main: == 20230108205644 ChangeGroupCrmSettingsEnabledDefault: migrating =============
main: -- change_column_default(:group_crm_settings, :enabled, {:from=>false, :to=>true})
main:    -> 0.0723s
main: == 20230108205644 ChangeGroupCrmSettingsEnabledDefault: migrated (0.0783s) ====

lee@Lees-MBP gitlab % bundle exec rails db:migrate:down VERSION=20230108205644
Attention: used pure ruby version of MurmurHash3
main: == 20230108205644 ChangeGroupCrmSettingsEnabledDefault: reverting =============
main: -- change_column_default(:group_crm_settings, :enabled, {:from=>true, :to=>false})
main:    -> 0.0748s
main: == 20230108205644 ChangeGroupCrmSettingsEnabledDefault: reverted (0.0794s) ====

How to set up and validate locally

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

  1. Create a new root group
  2. Ensure the CRM option is enabled https://docs.gitlab.com/ee/user/crm/#enable-customer-relations-management-crm
  3. Ensure the customer relations > contacts and organizations left navigation menu/sidebar options appear
  4. Create a subgroup
  5. Ensure the CRM option is enabled

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #2256

Edited by Lee Tickett

Merge request reports

Loading