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

[REF] minor tidy ups on very nasty function #15722

Merged
merged 2 commits into from
Nov 4, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Nov 4, 2019

Overview

Changes

  • switches to using cached function rather than deprecated function to get MembershipTypeDetails (covered by existing tests)
  • remove unnecessary date formatting

Before

Nasty

After

Still nasty if I'm honest

Technical Details

It used to be necessary to ISO format code before DAO->save. However, along the line wee fixed it lower
down & no longer need this smattered all over the code. Test proves it's OK (actually they noisily pointed out that the code had to stop unpacking the separated string as it was now getting that done for it :-)

Comments

@civibot
Copy link

civibot bot commented Nov 4, 2019

(Standard links)

@yashodha
Copy link
Contributor

yashodha commented Nov 4, 2019

@eileenmcnaughton You might want to squash your commits.

@eileenmcnaughton
Copy link
Contributor Author

@yashodha I wasn't going to on this one because the 3 commits do different things - but I could squash the first 2 I guess since that's just the test plus the fix that follows

Remove a few lines of unnecessary code
It used to be necessary to ISO format code before DAO->save. However, along the line wee fixed it lower
down & no longer need this smattered all over the code. Test proves it's OK
@eileenmcnaughton
Copy link
Contributor Author

Ok test squashed into the commit it tests

@colemanw
Copy link
Member

colemanw commented Nov 4, 2019

Looks good.

@colemanw colemanw merged commit 6a3d441 into civicrm:master Nov 4, 2019
@colemanw colemanw deleted the rel_test branch November 4, 2019 12:49
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