dev/membership#18 Enhance parameters for Job.process_membership
Created by: mattwire
Overview
This adds some parameters to control the Job.process_membership API/scheduled job per gitlab issues.
https://lab.civicrm.org/dev/membership/issues/18
Before
Cannot control behaviour of Job.process_membership.
After
Can control Job.process_membership:
- exclude_test_memberships: Exclude test memberships from calculations (default = TRUE)
- only_active_membership_types: Exclude disabled membership types from calculations (default = TRUE)
- exclude_membership_status_ids: Default: Exclude Pending, Cancelled, Expired. Deceased will always be excluded
Technical Details
Comments
@michaelmcandrew Can you write a unit test to validate the new parameters? There are a number of tests on Job.process_membership in tests/phpunit/api/v3/JobTest.php
which could be extended/copied.