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/
- Create a new root group
- Ensure the CRM option is enabled https://docs.gitlab.com/ee/user/crm/#enable-customer-relations-management-crm
- Ensure the customer relations > contacts and organizations left navigation menu/sidebar options appear
- Create a subgroup
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #2256
Edited by Lee Tickett