Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with update_admin_profile in packaging deploys #1989

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,22 @@ tasks:
- record_type: "{managed}Course_Enrollment__c.Student"
default: true

# Separate task to avoid options merging with the above,
# as this results in Release Deploy failing due to complex
# behavior inside update_admin_profile.
update_admin_profile_packaging:
class_path: cumulusci.tasks.salesforce.ProfileGrantAllAccess
options:
record_types:
- record_type: "Account.Administrative"
default: true
- record_type: "Account.Academic_Program"
- record_type: "Account.Business_Organization"
- record_type: "Account.Educational_Institution"
- record_type: "Account.HH_Account"
- record_type: "Account.Sports_Organization"
- record_type: "Account.University_Department"

flows:
setup_encryption:
description: Sets up Shield Platform Encryption in the target Org. It is recommended that this flow be run in developer scratch orgs only.
Expand Down Expand Up @@ -497,17 +513,7 @@ flows:
steps:
1:
# Configure update_admin_profile
task: update_admin_profile
options:
record_types:
- record_type: "Account.Administrative"
default: true
- record_type: "Account.Academic_Program"
- record_type: "Account.Business_Organization"
- record_type: "Account.Educational_Institution"
- record_type: "Account.HH_Account"
- record_type: "Account.Sports_Organization"
- record_type: "Account.University_Department"
task: update_admin_profile_packaging

config_qa:
# descripton: Configure an org for use as a QA org after package metadata is deployed.
Expand Down
Loading