Skip to content

Commit

Permalink
starting to fix Refine Membership Snowfakery Recipe #108
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonletts committed Oct 30, 2023
1 parent 7ec5f8a commit c546726
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
4 changes: 3 additions & 1 deletion cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ flows:
steps:
3:
task: assign_permission_sets
options: api_names Manage_Memberships
options:
api_names: Manage_Memberships

23 changes: 15 additions & 8 deletions datasets/MembershipSchemaAndBenefits.recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
Type: Membership
CloseDate:
date_between:
start_date: -1y
start_date: -3y
end_date: today
Description:
fake.text:
Expand Down Expand Up @@ -151,12 +151,7 @@
- Renewed
- Reacquired
Primary__c: true
Status__c:
random_choice:
- Former
- Lapsed
- Renewal
- Current

Type__c:
if:
- choice:
Expand All @@ -172,7 +167,19 @@
Does_Not_Expire__c: false
Start_Date__c: ${{Opportunity.CloseDate}}
End_Date__c: ${{date(Start_Date__c)+relativedelta(months=12)}}

Status__c:
if:
- choice:
when: ${{date(End_Date__c) < today}}
pick:
random_choice:
- Former
- Lapsed
- choice:
pick:
random_choice:
- Current
- Renewal
Account__c:
reference: Account

Expand Down

0 comments on commit c546726

Please sign in to comment.