Skip to content

Commit

Permalink
Including steps to use CumulusCI with the project
Browse files Browse the repository at this point in the history
  • Loading branch information
trevoryager-callaway committed Sep 30, 2021
1 parent d7174cf commit e302d2b
Show file tree
Hide file tree
Showing 12 changed files with 26,761 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


# Critical Changes

# Changes

# Issues Closed
28 changes: 26 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is used for Git repositories to specify intentionally untracked files that Git should ignore.
# This file is used for Git repositories to specify intentionally untracked files that Git should ignore.
# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore
# For useful gitignore templates see: https://github.com/github/gitignore

Expand Down Expand Up @@ -35,4 +35,28 @@ ehthumbs.db
$RECYCLE.BIN/

# Local environment variables
.env
.env

# Salesforce / SFDX / CCI
.cci
.sfdx
/src.orig
/src

# Python
*.pyc
__pycache__

# Robot Framework results
robot/communityRelatedList/results/

# Editors
*.sublime-project
*.sublime-workspace
.vscode
.idea
.project
.settings

# Misc
.DS_Store
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
.localdevserver
.sfdx
.vscode
*.md

coverage/
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,26 @@ login and navigate to [`/packaging/installPackage.apexp?p0=04t5e000000aORGAA2`](
- Move the columns to custom metadata so we can have more configurations in place (how to display the field -- link, phone, email, etc...)
- Ability to filter on the related records

** Powered by ** [Callaway Cloud Consulting](https://www.callawaycloud.com/)
# Development

Pre-requisites:

1. Run `npm install`

To work on this project in a scratch org:

1. [Set up CumulusCI](https://cumulusci.readthedocs.io/en/latest/tutorial.html)
2. Run `cci service connect devhub --project` to connect to a devhub for this project.
3. Run `cci flow run dev_org --org dev` to create the dev scratch org and deploy this project.
4. Run `cci org browser dev` to open the org in your browser.
5. Run `cci flow run release_unlocked_beta --org dev` to upload a new beta version of the unlocked package.
1. Create a new GitHub release tag for the new beta version.
2. Generates release notes.
3. Syncs feature branches with main branch.
6. Run `cci flow run ci_beta --org beta` to create a new scratch org and run test classes.
7. Run `cci flow run release_unlocked_production --org packaging` to promote a production release of your managed package.
1. It promotes the most recent beta version (found in the project’s GitHub releases) to production status.
2. Then, CumulusCI creates a new, production GitHub release, and aggregates release notes for that release.
8. Run `cci flow run ci_release --org release` to install the latest production release and run all test classes in a release scratch org.

** Powered by ** [Callaway Cloud Consulting](https://www.callawaycloud.com/)
24 changes: 24 additions & 0 deletions cumulusci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
minimum_cumulusci_version: "3.44.1"
project:
name: communityRelatedList
package:
name: communityRelatedList
api_version: "52.0"
git:
source_format: sfdx

tasks:
robot:
options:
suites: robot/communityRelatedList/tests
options:
outputdir: robot/communityRelatedList/results

robot_testdoc:
options:
path: robot/communityRelatedList/tests
output: robot/communityRelatedList/doc/communityRelatedList_tests.html

run_tests:
options:
required_org_code_coverage_percent: 75
45 changes: 45 additions & 0 deletions datasets/mapping.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
Insert Accounts:
sf_object: Account
table: Account
fields:
Name: Name
Description: Description
BillingStreet: BillingStreet
BillingCity: BillingCity
BillingState: BillingState
BillingPostalCode: BillingPostalCode
BillingCountry: BillingCountry
ShippingStreet: ShippingStreet
ShippingCity: ShippingCity
ShippingState: ShippingState
ShippingPostalCode: ShippingPostalCode
ShippingCountry: ShippingCountry
Phone: Phone
Fax: Fax
Website: Website
NumberOfEmployees: NumberOfEmployees
AccountNumber: AccountNumber
Site: Site
Type: Type
Insert Contacts:
sf_object: Contact
table: Contact
fields:
Salutation: Salutation
FirstName: FirstName
LastName: LastName
Email: Email
Phone: Phone
MobilePhone: MobilePhone
OtherPhone: OtherPhone
HomePhone: HomePhone
Title: Title
Birthdate: Birthdate
MailingStreet: MailingStreet
MailingCity: MailingCity
MailingState: MailingState
MailingPostalCode: MailingPostalCode
MailingCountry: MailingCountry
lookups:
AccountId:
table: Account
21 changes: 21 additions & 0 deletions orgs/beta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"orgName": "communityRelatedList - Beta Test Org",
"edition": "Developer",
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"chatterSettings": {
"enableChatter": true
},
"userManagementSettings": {
"enableNewProfileUI": true
},
"securitySettings": {
"enableAdminLoginAsAnyUser": true,
"sessionSettings": {
"forceRelogin": false
}
}
}
}
28 changes: 28 additions & 0 deletions orgs/dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"orgName": "communityRelatedList - Dev Org",
"edition": "Developer",
"features": ["ServiceCloud", "Communities", "Knowledge", "LiveAgent"],
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"chatterSettings": {
"enableChatter": true
},
"userManagementSettings": {
"enableNewProfileUI": true
},
"securitySettings": {
"enableAdminLoginAsAnyUser": true,
"sessionSettings": {
"forceRelogin": false
}
},
"languageSettings": {
"enableTranslationWorkbench": true
},
"communitiesSettings": {
"enableNetworksEnabled": true
}
}
}
24 changes: 24 additions & 0 deletions orgs/feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"orgName": "communityRelatedList - Feature Test Org",
"edition": "Developer",
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"chatterSettings": {
"enableChatter": true
},
"userManagementSettings": {
"enableNewProfileUI": true
},
"securitySettings": {
"enableAdminLoginAsAnyUser": true,
"sessionSettings": {
"forceRelogin": false
}
},
"languageSettings": {
"enableTranslationWorkbench": true
}
}
}
21 changes: 21 additions & 0 deletions orgs/release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"orgName": "communityRelatedList - Release Test Org",
"edition": "Enterprise",
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"chatterSettings": {
"enableChatter": true
},
"userManagementSettings": {
"enableNewProfileUI": true
},
"securitySettings": {
"enableAdminLoginAsAnyUser": true,
"sessionSettings": {
"forceRelogin": false
}
}
}
}
Loading

0 comments on commit e302d2b

Please sign in to comment.