-
Notifications
You must be signed in to change notification settings - Fork 6
/
cumulusci.yml
669 lines (613 loc) · 22.6 KB
/
cumulusci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
minimum_cumulusci_version: "3.9.0"
project:
name: TractionThrive
package:
name: Traction Thrive
namespace: tractionthrive
api_version: "48.0"
source_format: sfdx
test:
name_match: "%TEST%"
git:
repo_url: https://github.com/SFDO-Community/TractionThrive
prefix_beta: beta/
prefix_release: release/
tasks:
assign_role_to_user:
class_path: tasks.assign_role_to_user.AssignRole
create_community:
group: Traction Thrive Config
description: Creates the community
class_path: tasks.create_community_workaround.CreateCommunity
options:
template: "Traction Thrive"
name: "Traction Thrive"
url_path_prefix: TractionThrive
create_community_scratch_org:
group: Traction Thrive Config
description: Creates the community
class_path: tasks.create_community_workaround.CreateCommunity
options:
template: "Build Your Own"
name: "Traction Thrive"
url_path_prefix: TractionThrive
add_namespace_tokens:
class_path: tasks.add_namespace_tokens.AddNamespaceTokens
delete_data:
class_path: cumulusci.tasks.bulkdata.DeleteData
options:
objects:
- Assignment__c
- Credential__c
- Staff_Access__c
- Case
- Contact
- Staff_Levels__c
- Status_Report__c
- Account
delete_data_managed:
class_path: cumulusci.tasks.bulkdata.DeleteData
options:
objects:
- tractionthrive__Assignment__c
- tractionthrive__Credential__c
- tractionthrive__Staff_Access__c
- Case
- Contact
- tractionthrive__Staff_Levels__c
- tractionthrive__Status_Report__c
- Account
deploy_community_config:
description: Deploys the Community configuration
group: Traction Thrive Config
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: unpackaged/config/community
namespace_inject: $project_config.project__package__namespace
deploy_navigation_config:
description: Deploys the Community navigation configuration
group: Traction Thrive Config
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: unpackaged/config/navigation
deploy_profile_config:
description: Deploys the Profiles
group: Traction Thrive Config
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: unpackaged/config/profiles
namespace_inject: $project_config.project__package__namespace
deploy_kav_config:
description: Deploys the Knowledge configuration
group: Traction Thrive Config
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: unpackaged/config/kav
deploy_wave_config:
description: Deploys the Wave configuration
group: Traction Thrive Config
class_path: cumulusci.tasks.salesforce.Deploy
options:
path: unpackaged/config/wave
namespace_inject: $project_config.project__package__namespace
get_available_licenses:
description: This preflight check examines available licenses in the org.
class_path: tasks.licenses_preflight.GetAvailableLicenses
get_available_psls:
description: This preflight check examines available Permission Set Licenses in the org.
class_path: tasks.licenses_preflight.GetAvailablePermissionSetLicenses
publish_community:
description: Publishes the community
group: Traction Thrive Config
class_path: cumulusci.tasks.salesforce.PublishCommunity
options:
name: "Traction Thrive"
retrieve_community_config:
description: Retrieves the Community configuration
group: Traction Thrive Config
class_path: cumulusci.tasks.salesforce.RetrieveUnpackaged
options:
path: unpackaged/config/community
package_xml: manifests/community.xml
retrieve_navigation_config:
description: Retrieves the Community navigation configuration
group: Thrive Config
class_path: cumulusci.tasks.salesforce.RetrieveUnpackaged
options:
path: unpackaged/config/navigation
package_xml: manifests/navigation.xml
retrieve_profile_config:
description: Retrieves the relevant Profiles
group: Thrive Config
class_path: cumulusci.tasks.salesforce.RetrieveUnpackaged
options:
path: unpackaged/config/profiles
package_xml: manifests/profiles.xml
retrieve_wave_config:
description: Retrieves the Einstein Analytics configuration
group: Traction Thrive Config
class_path: cumulusci.tasks.salesforce.RetrieveUnpackaged
options:
path: unpackaged/config/wave
package_xml: manifests/wave.xml
create_community_users:
description: Creates Community Users with various profiles for robot test automation
class_path: cumulusci.tasks.robotframework.Robot
options:
suites: tasks/create_community_users.robot
vars: BROWSER:headlesschrome
options: {'outputdir': 'robot/Crisis-Management/results'}
switch_community_template:
description: Switches to the community template page and creates a community
class_path: cumulusci.tasks.robotframework.Robot
options:
suites: tasks/switch_community_template.robot
vars: BROWSER:headlesschrome
options: {'outputdir': 'robot/Crisis-Management/results'}
switch_community_template:
description: Switch community templates using Robot Framework
class_path: cumulusci.tasks.robotframework.Robot
options:
suites: tasks/switch_community_template.robot
vars: BROWSER:headlesschrome
options: {'outputdir': 'robot/Crisis-Management/results'}
robot:
options:
suites: robot/Crisis-Management/tests
options:
outputdir: robot/Crisis-Management/results
robot_testdoc:
options:
path: robot/Crisis-Management/tests
output: robot/Crisis-Management/doc/Crisis_Management_tests.html
set_organization_wide_defaults:
options:
org_wide_defaults:
- api_name: Account
internal_sharing_model: ReadWrite
external_sharing_model: ReadWrite
# - api_name: Contact
# internal_sharing_model: ControlledByParent
# external_sharing_model: ControlledByParent
#- api_name: Assignment__c
# internal_sharing_model: ReadWrite
# external_sharing_model: ReadWrite
#- api_name: Credential__c
# internal_sharing_model: ReadWrite
# external_sharing_model: ReadWrite
set_sharing_dependencies:
description: Deploy the Case and Opportunity sharing configuration
group: Traction Thrive Dependencies
class_path: cumulusci.tasks.metadata_etl.SetOrgWideDefaults
options:
org_wide_defaults:
- api_name: Account
internal_sharing_model: ReadWrite
external_sharing_model: Read
- api_name: Case
internal_sharing_model: Private
external_sharing_model: Private
- api_name: Opportunity
internal_sharing_model: Private
external_sharing_model: Private
set_user_role_scratch_org:
class_path: cumulusci.tasks.apex.anon.AnonymousApexTask
options:
apex: >
delete [SELECT Id FROM UserRole];
UserRole ur = new UserRole(Name = 'CEO');
insert ur;
update new User(Id = UserInfo.getUserId(), UserRoleId = ur.Id);
update_admin_profile:
class_path: tasks.update_profile.ProfileGrantAllAccess
options:
record_types:
- record_type: "Account.{managed}Division"
default: true
- record_type: "Account.{managed}Hospital"
- record_type: "Account.{managed}Regional_Health_Authority"
api_names:
- Admin
- Analytics Cloud Integration User
uninstall_packaged_incremental:
options:
ignore:
ApexClass:
- CommunitiesLoginController
- CommunitiesLoginControllerTest
- SiteLoginController
- SiteLoginControllerTest
CustomApplication:
- Crisis_Management
CompactLayout:
- Lead.Leads_Custom_Compact_Layout
- Opportunity.New_Awesome_Companct_Layout
CustomObject:
- Knowledge__kav
CustomObjectTranslation:
- Account-es
- Account-fr
- Account-hi
- Assignment__c-en_US
- Campaign-es
- Campaign-fr
- Campaign-hi
- Case-es
- Case-fr
- Case-hi
- Contact-es
- Contact-fr
- Contact-hi
- Credential__c-en_US
- Data_Sharing__c-en_US
- Division_Role__c-en_US
- Division_Role__c-es
- Division_Role__c-fr
- Division_Role__c-hi
- Staff_Access__c-en_US
- Staff_Levels__c-en_US
- Status_Report__c-en_US
- Status_Report_Type_Mapping__mdt-en_US
- Task-es
- Task-fr
- Task-hi
- Traction_Thrive_Setting__mdt-en_US
- Update_Contact__c-en_US
- Update_Contact__c-es
- Update_Contact__c-fr
- Update_Contact__c-hi
Layout:
- Knowledge__kav-Knowledge Layout
- Staff_Access__c-Staff Access Layout
- Staff_Levels__c-Staff Levels Layout
ListView:
- Knowledge__kav.archived_articles
- Knowledge__kav.draft_articles
- Knowledge__kav.published_articles
QuickAction:
- Snapins_Contact_PrechatQuickAction_08h2F0000004CKf_1585493095610
- Snapins_Case_PrechatQuickAction_08h2F0000004CKf_1585493095785
- Snapins_Case_OfflineCaseQuickAction_08h2F0000004CKf_1585495741456
WebLink:
- Campaign.ViewCampaignInfluenceReport
check_case_owd:
class_path: tasks.owd_preflight.CheckOWDForObject
options:
sobject: Case
internal_sharing_model: Private
external_sharing_model: Private
check_opportunity_owd:
class_path: tasks.owd_preflight.CheckOWDForObject
options:
sobject: Opportunity
internal_sharing_model: Private
external_sharing_model: Private
check_account_owd:
class_path: tasks.owd_preflight.CheckOWDForObject
options:
sobject: Account
internal_sharing_model: ReadWrite
external_sharing_model: ReadWrite
add_standard_value_set_entries:
options:
api_names:
- AccountType
entries:
- label: Clinic
fullName: Clinic
- label: COVID Clinic
fullName: COVID Clinic
- label: Hospital
fullName: Hospital
- label: UPCC
fullName: UPCC
add_permissions_to_nmg:
description: Assign appropriate permission to community's network member group
class_path: tasks.nmg_transform.NgmTransForm
reset_nmg_sql:
description: Reset network member group load file to prevent modified file for commit
class_path: tasks.nmg_sql_reset.NgmSqlReset
# load custom settings
load_custom_settings:
options:
settings_path: unpackaged/config/custom-settings/customsettings.yml
# load namespaced custom settings
load_ns_custom_settings:
class_path: cumulusci.tasks.salesforce.LoadCustomSettings
options:
settings_path: unpackaged/config/custom-settings/ns_customsettings.yml
flows:
config_apextest:
steps:
3:
task: deploy_wave_config
4:
task: deploy_kav_config
5:
task: deploy_profile_config
6:
task: load_dataset
7:
task: set_organization_wide_defaults
8:
task: set_user_role_scratch_org
when: org_config.scratch
config_community:
description: Creates, configures, and publishes the Community
steps:
1:
task: create_community
2:
task: deploy_navigation_config
3:
task: deploy_community_config
4:
task: publish_community
config_scratch_start:
description: SCRATCH org start build
steps:
1:
flow: dependencies
2:
flow: deploy_unmanaged
3:
task: deploy_post
4:
task: update_admin_profile
5:
task: load_custom_settings
6:
task: deploy_wave_config
7:
task: create_community_scratch_org
config_scratch_finish:
description: SCRATCH org finish build
steps:
1:
task: deploy_navigation_config
2:
task: deploy_community_config
3:
task: publish_community
4:
task: deploy_kav_config
5:
task: deploy_profile_config
6:
task: load_dataset
7:
task: set_organization_wide_defaults
8:
task: set_user_role_scratch_org
when: org_config.scratch
config_managed:
steps:
3:
task: load_ns_custom_settings
4:
task: deploy_wave_config
options:
unmanaged: False
5:
flow: config_community
options:
deploy_community_config:
unmanaged: False
6:
task: deploy_kav_config
7:
task: deploy_profile_config
options:
unmanaged: False
8:
task: load_dataset
options:
mapping: datasets/mapping-managed.yml
9:
task: set_organization_wide_defaults
10:
task: set_user_role_scratch_org
when: org_config.scratch
config_default:
description: Deploys the default configuration for all environments
steps:
1:
task: load_custom_settings
2:
task: deploy_wave_config
3:
flow: config_community
4:
task: deploy_kav_config
5:
task: deploy_profile_config
6:
task: load_dataset
7:
task: set_organization_wide_defaults
8:
task: set_user_role_scratch_org
when: org_config.scratch
config_dev:
steps:
3:
flow: config_default
config_qa:
steps:
3:
flow: config_default
4:
task: create_community_users
# 5:
# flow: add_nmg_permissions
qa_org:
steps:
1:
flow: None
2:
flow: None
3:
flow: None
4:
task: None
5:
flow: config_scratch_start
6:
task: switch_community_template
7:
flow: config_scratch_finish
8:
task: create_community_users
config_packaging:
steps:
1:
options:
managed: False
# Use the minimal configuration necessary to get apex tests to pass
3:
task: deploy_kav_config
4:
task: deploy_profile_config
5:
task: set_organization_wide_defaults
custom_dependencies:
description: Additional custom dependency tasks
steps:
1:
task: set_sharing_dependencies
2:
task: add_standard_value_set_entries
dependencies:
steps:
3:
flow: custom_dependencies
beta_dependencies:
steps:
3:
flow: custom_dependencies
retrieve_config_unmanaged:
steps:
1:
task: retrieve_navigation_config
1.1:
task: add_namespace_tokens
options:
directories: unpackaged/config/navigation
really_change_files: True
2:
task: retrieve_profile_config
2.1:
task: add_namespace_tokens
options:
directories: unpackaged/config/profiles
really_change_files: True
3:
task: retrieve_wave_config
3.1:
task: add_namespace_tokens
options:
directories: unpackaged/config/wave
really_change_files: True
add_nmg_permissions:
description: Extracts newtwork and permissions then generates a new files to load permissions for network memeber group
steps:
1:
task: extract_dataset
options:
mapping: datasets/mapping-nmg-extract.yml
sql_path: datasets/nmg-extract.sql
2:
task: add_permissions_to_nmg
3:
task: load_dataset
options:
mapping: datasets/mapping-nmg-load.yml
sql_path: datasets/nmg-load.sql
4:
task: reset_nmg_sql
customer_org:
steps:
1:
task: add_standard_value_set_entries
ui_options:
name: "Add Account Type Values"
is_required: False
2:
task: install_managed
3:
task: deploy_post
options:
unmanaged: False
ui_options:
configuration:
name: "Add Data Category Groups and Relabel Accounts"
is_required: False
4:
task: load_ns_custom_settings
ui_options:
name: "Load custom settings defaults"
is_required: False
5:
task: deploy_wave_config
ui_options:
name: Install Analytics
is_required: False
options:
unmanaged: False
6:
flow: config_community
options:
deploy_community_config:
name: "Configure Community"
unmanaged: False
is_required: False
ui_options:
create_community:
name: Create Community
is_required: False
deploy_navigation_config:
name: "Deploy Navigation"
is_required: False
deploy_community_config:
name: "Configure Community"
is_required: False
publish_community:
name: "Publish Community"
is_required: False
7:
task: deploy_kav_config
ui_options:
name: "Configure Knowledge"
is_required: False
8:
task: deploy_profile_config
ui_options:
name: "Install Profiles"
is_required: False
options:
unmanaged: False
plans:
install:
slug: install
title: Install Traction Thrive
tier: primary
is_listed: True
checks:
#- when: "'PID_Customer_Community_Plus' not in tasks.get_available_licenses()"
# action: error
# message: "Please ensure you have Customer Community Plus licenses available prior to installing."
- when: "'EinsteinAnalyticsPlusPsl' not in tasks.get_available_psls() or 'EinsteinAnalyticsForCommunityLoginsPsl' not in tasks.get_available_psls()"
action: warn
message: "Please ensure you have Einstein Analytics Plus and Einstein Analytics for Community Logins licenses available prior to installing."
- when: "not tasks.check_case_owd()"
action: error
message: "Please set the Internal and External Organization-Wide Defaults to Private for the Case object prior to installing."
- when: "not tasks.check_opportunity_owd()"
action: error
message: "Please set the Internal and External Organization-Wide Defaults to Private for the Opportunity object prior to installing."
- when: "tasks.check_account_owd()"
action: error
message: "Please set the External Organization-Wide Defaults to Read or Private for the Account object prior to installing."
steps:
1:
flow: customer_org