Skip to content

Switch to using ContributionRecur.cancel api from CancelSubscription form #14033

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

Merged
merged 1 commit into from
Apr 14, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Apr 11, 2019

Overview

This makes it so the form uses the api, which we have started to add unit testing to. Following this we can use the api for transaction handling and move more of the form logic into
the api, making it available to others & allowing us to better move to a new form layer later
without as much logic in the forms

Before

No noticeable change - code consolidation only

After

No noticeable change - code consolidation only

Technical Details

The function cancelRecurContribution is only called from the form and from the api.

I did some preliminary cleanup on the api & added a unit test in a previous PR to prepare for this

Comments

…form

The function cancelRecurContribution is only called from the form ant from the api.

This makes it so the form uses the api, which we have started to add unit testing to. Follow
ing this we can use the api for transaction handling and move more of the form logic into
the api, making it available to others & allowing us to better move to a new form layer later
without as much logic in the forms
@civibot
Copy link

civibot bot commented Apr 11, 2019

(Standard links)

@civibot civibot bot added the master label Apr 11, 2019
@mattwire
Copy link
Contributor

Switching to API which calls exactly the same thing

@mattwire mattwire merged commit 2e47b4f into civicrm:master Apr 14, 2019
@eileenmcnaughton eileenmcnaughton deleted the recur_cancel_api branch April 14, 2019 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants