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

Feature/new cci flows #141

Merged
merged 4 commits into from
Feb 5, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.sfdx
/src.orig
/src
config.json

# Python
*.pyc
Expand Down
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,16 @@ $ git clone https://github.com/SFDO-Community-Sprints/Snowfakery-Recipe-Template
- [Set up CumulusCI](https://cumulusci.readthedocs.io/en/latest/get_started.html) : this repository includes a project initialization in cumulusci.yml file. You can skip the project initialization `cci project init`

### Set up the right flavor of scratch org
If you want to use a scratch org to play with Snowfakery, you may want to install NPSP or EDA as well.
- Run `cci org scratch dev dev --default` to create a new scratch org and set it as a default
- **Install EDA** Run `cci flow run eda:trial_org --org dev`
- Optional for EDA orgs: **Install Advisor Link** Run `cci flow run sal:install_base --org dev`
- **Install NPSP** Run `cci flow run npsp:install_prod --org dev`
If you want to use a scratch org to play with Snowfakery recipes in this repository, you may want to install NPSP, EDA, Outbound Funds (OBF), or Program Management Module (PMM) as well.
- For EDA recipes, run `cci org scratch eda eda --default` to create a new scratch org and set it as a default
- **Install EDA** Run `cci flow run eda_scratch --org eda`
- Optional for EDA orgs: **Install Advisor Link** Run `cci flow run sal_eda_scratch --org eda`
- For NPSP, OBF, or PMM recipes, run `cci org scratch dev dev --default` to create a new scratch org and set it as a default
- **Install NPSP** Run `cci flow run npsp:install_prod --org dev`
- **Install OBF** Run `cci flow run obf_scratch --org dev`
- Optional for OBF orgs: **Install NPSP** Run `cci flow run obf_npsp_scratch --org dev`
- **Install PMM** Run `cci flow run pmm_scratch --org dev`
- Optional for PMM orgs: **Install NPSP** Run `cci flow run npsp_scratch --org dev`

### Instructions for the Collaborators

Expand Down
64 changes: 60 additions & 4 deletions cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
name: DataGenerationToolkit
package:
name: DataGenerationToolkit
api_version: '50.0'
api_version: '53.0'
git:
default_branch: 'main/'
source_format: sfdx
Expand All @@ -17,7 +17,17 @@ sources:
github: https://github.com/SalesforceFoundation/SAL-CumulusCI
pmm:
github: https://github.com/SalesforceFoundation/PMM

obf:
github: https://github.com/SalesforceFoundation/OutboundFundsModule
osc_memberships:
github: https://github.com/SFDO-Community-Sprints/MembershipSchemaAndBenefits
# cci flow run osc_memberships:dev_org --org dev
# assign Manage_Memberships perm set
orgs:
scratch:
eda:
config_file: orgs/eda.json
days: 7
tasks:
robot:
options:
Expand Down Expand Up @@ -64,15 +74,19 @@ tasks:
class_path: cumulusci.tasks.bulkdata.generate_and_load_data_from_yaml.GenerateAndLoadDataFromYaml
group: OSC
options:
generator_yaml: snowfakery_samples/OSC/MembershipSchemaAndBenefits_basic.recipe.yml
generator_yaml: snowfakery_samples/OSC/MembershipSchemaAndBenefits.recipe.yml
num_records: 10
num_records_tablename: Opportunity

npsp_settings:
class_path: cumulusci.tasks.bulkdata.generate_and_load_data_from_yaml.GenerateAndLoadDataFromYaml
options:
generator_yaml: snowfakery_samples/npsp/NPSP_Settings.recipe.yml

eda_org_alias:
description: create a new eda org alias
class_path: cumulusci.cli
options:
command: "cci org scratch dev eda"
flows:
osc_memberships_project:
description: OSC Membership Schema and Benefits project
Expand Down Expand Up @@ -105,3 +119,45 @@ flows:
task: generate_and_load_from_yaml
options:
generator_yaml: snowfakery_samples/npsp/NPSP_Settings.recipe.yml
pmm_scratch:
description: install PMM package independent of NPSP
steps:
1:
flow: pmm:install_prod
options:
org: dev
obf_scratch:
description: install Outbound Funds Module independent of NPSP
steps:
1:
flow: obf:install_prod
options:
org: dev
obf_npsp_scratch:
description: install Outbound Funds Module with NPSP extension
steps:
1:
flow: obf:install_prod
options:
org: dev
2:
flow: obf:install_npsp
eda_scratch:
# $ cci flow run eda_scratch --org eda
description: install Education Data Architecture.
steps:
1:
flow: eda:install_prod
options:
org: eda
sal_eda_scratch:
# $ cci flow run sal_eda_scratch --org eda
description: install Advisor Link with Education Data Architecture dependencies.
steps:
1:
flow: sal:install_prod
options:
org: eda



24 changes: 24 additions & 0 deletions orgs/eda.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"orgName": "Snowfakery Recipe - Dev Org",
"edition": "Developer",
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"chatterSettings": {
"enableChatter": true
},
"userManagementSettings": {
"enableNewProfileUI": true
},
"securitySettings": {
"enableAdminLoginAsAnyUser": true,
"sessionSettings": {
"forceRelogin": false
}
},
"languageSettings": {
"enableTranslationWorkbench": true
}
}
}
2 changes: 1 addition & 1 deletion sfdx-project.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"packageDirectories": [{"path": "force-app", "default": true}], "namespace": null, "sourceApiVersion": "50.0"}
{"packageDirectories": [{"path": "force-app", "default": true}], "namespace": null, "sourceApiVersion": "53.0"}