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

CRM-21551 Add parameter to support skipping processing greetings when… #11405

Merged
merged 1 commit into from
Dec 18, 2017

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Add parameter to support skipping processing greetings when calling api contact.create

Before

Not possible to skip this often slow function when processing large batches.

After

Possible to skip greeting processing. Can be done later by scheduled job

Technical Details

We have a precedent for allowing intensive operations to be skipped when being called from the api - ie. currently geocoding and street parsing can be skipped and filled by offline jobs. There is a PR open to allow skipping the mystical and magical fixAddress function https://github.com/civicrm/civicrm-core/pull/11372/files and the processGreeting code is in a similar vein ie 1) expensive to run and 2) there is a job which can do it 'out of hours' if decided.

Adding another 'magic param' to the v3 api is not great but OTOH there is sufficient precedent IMHO

@colemanw
Copy link
Member

  • (r-jira) Pass
  • (r-test) Pass
  • (r-code) Pass
  • (r-doc) Pass: Self-documented in api explorer.
  • (r-maint) Pass
  • (r-run) Pass: I used the new param in the api explorer to create a contact with & without a greeting. Worked as expected.
  • (r-user) Pass
  • (r-tech) Pass

@colemanw colemanw merged commit b04ab42 into civicrm:master Dec 18, 2017
@eileenmcnaughton eileenmcnaughton deleted the removal branch December 18, 2017 22:02
sluc23 pushed a commit to ixiam/civicrm-core that referenced this pull request Jan 10, 2018
CRM-21551 Add parameter to support skipping processing greetings when…
wmfgerrit pushed a commit to wikimedia/wikimedia-fundraising-crm that referenced this pull request Jan 10, 2018
Note we need some (already upstreamed) civicrm fixes merged +
progress on this civicrm/civicrm-core#11405
before the tests will pass.

I propose that we actually DON'T skip processing greetings
when the amount is $500+ because it would benefit major gifts if that were set.

Bug: T156193
Change-Id: I7c34be4225c04ac112d74891035607144178fd5f
wmfgerrit pushed a commit to wikimedia/wikimedia-fundraising-crm that referenced this pull request Jan 10, 2018
Note we need some (already upstreamed) civicrm fixes merged +
progress on this civicrm/civicrm-core#11405
before the tests will pass.

I propose that we actually DON'T skip processing greetings
when the amount is $500+ because it would benefit major gifts if that were set.

Bug: T156193
Change-Id: I7c34be4225c04ac112d74891035607144178fd5f
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Feb 1, 2018
… calling api contact.create

civicrm#11405

This allows unit tests in the extension to run for us & on stock & brings us closer
to stock

Bug: T156193

Change-Id: Ib99a659495b7c584a986d056d53667b23f62494c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants