Skip to content

Commit

Permalink
Merge pull request #323 from SalesforceFoundation/feature/preflight-c…
Browse files Browse the repository at this point in the history
…hecks

Add preflight checks
  • Loading branch information
davidmreed authored Jun 22, 2021
2 parents 7f9d378 + 95812f3 commit 798513e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
7 changes: 7 additions & 0 deletions cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,13 @@ plans:
slug: install
title: Install K-12 Architecture Kit
tier: primary
checks:
- when: "not tasks.check_my_domain_active()"
action: error
message: "Please enable My Domain in your org prior to installing."
- when: "not tasks.check_chatter_enabled()"
action: error
message: "Please enable Chatter in your org prior to installing."
steps:
1:
flow: customer_org
Expand Down
26 changes: 25 additions & 1 deletion metadeploy/labels_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,29 @@
"message": "Deploy K-12 Architecture Kit App Tile",
"description": "title of installation step"
}
},
"checks": {
"Please enable My Domain in your org prior to installing.": {
"message": "Please enable My Domain in your org prior to installing.",
"description": "shown if validation fails"
},
"Please enable Chatter in your org prior to installing.": {
"message": "Please enable Chatter in your org prior to installing.",
"description": "shown if validation fails"
}
},
"plan:upgrade": {
"title": {
"message": "Product Upgrade",
"description": "title of installation plan"
},
"preflight_message": {
"message": "This installer upgrades this package and any required dependencies to the latest version in your org. This installer isn't supported and has risks. Please don't run this installer unless you're aware of its specific use cases and considerations.",
"description": "shown before user starts installation (markdown)"
},
"post_install_message": {
"message": "Installation complete and package is on the latest version.",
"description": "shown after successful installation (markdown)"
}
}
}
}

0 comments on commit 798513e

Please sign in to comment.