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

Remove unreachable code lines. #16349

Merged
merged 1 commit into from
Jan 22, 2020
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jan 22, 2020

Overview

Removes lines of code for setting credit-note-id that were previously identified as unreachable

Before

Lines present - deprecation notices would have been seen if anyone hit them over the last few months (in a dev env or a unit test at least)

After

Lines gone - note that they call a very slow function that we aspire to moving out to an optional extension

Technical Details

We were very precautionary in Barcelona & deprecated rather than removing these line. However, we've had
several releases including a security release & an ESR since then with no one reporting hitting these so
they can go now

Comments

We were very precautionary in Barcelona & deprecated rather than removing these line. However, we've had
several releases including a security release & an ESR since then with no one reporting hitting these so
they can go now
@civibot
Copy link

civibot bot commented Jan 22, 2020

(Standard links)

@civibot civibot bot added the master label Jan 22, 2020
@jitendrapurohit
Copy link
Contributor

Verified by updating the contribution to Refunded/Cancelled using API, Forms, etc. Also tested with the payment API which sets the status of the contribution to refund on negative amount parameter. The credit note id was set correctly in all the cases. Agree with the removal of these code lines.

@yashodha
Copy link
Contributor

@eileenmcnaughton @jitendrapurohit looks good, merging this. Thanks!

@yashodha yashodha merged commit c8fd50e into civicrm:master Jan 22, 2020
@eileenmcnaughton eileenmcnaughton deleted the credit branch January 22, 2020 05:58
@eileenmcnaughton
Copy link
Contributor Author

thanks @yashodha

@eileenmcnaughton
Copy link
Contributor Author

& @jitendrapurohit

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.

3 participants