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

Add preflight checks #323

Merged
merged 2 commits into from
Jun 22, 2021
Merged
Show file tree
Hide file tree
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
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)"
}
}
}
}