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] Grant cleanup #17967

Merged
merged 1 commit into from
Jul 27, 2020
Merged

[REF] Grant cleanup #17967

merged 1 commit into from
Jul 27, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Minor code cleanup

Before

Handling for 'cleaning' money fields in the BAO

After

Handling moved to the form layer, legacy date handling removed

Technical Details

This does a couple of things to cleanup the Grant BAO -

  1. moves money handling back to the form layer
  2. removes unnecessary date handling - the format that comes from the form layer
    is now supported by the BAO.

I was looking to work on another but but then figured I needed a v4 api before
writing the tests and then realised we shouldn't do a v4 api before getting
rid of the legacy money handling.

It does occur to me it might make more sense to start moving to an
extension before doing any of the other steps

Comments

This does a couple of things to cleanup the Grant BAO -
1) moves money handling back to the form layer
2) removes unnecessary date handling - the format that comes from the form layer
is now supported by the BAO.

I was looking to work on another but but then figured I needed a v4 api before
writing the tests and then realised we shouldn't do a v4 api before getting
rid of the legacy money handling.

It does occur to me it might make more sense to start moving to an
extension before doing any of the other steps
@civibot
Copy link

civibot bot commented Jul 27, 2020

(Standard links)

@civibot civibot bot added the master label Jul 27, 2020
@pradpnayak
Copy link
Contributor

Looks good, good to merge

@colemanw
Copy link
Member

@eileenmcnaughton is this with an eye toward moving to a core extension?

@eileenmcnaughton
Copy link
Contributor Author

@colemanw I was originally looking to address a bug - but now suspect that might be a better first move

@seamuslee001 seamuslee001 merged commit 991e59e into civicrm:master Jul 27, 2020
@seamuslee001 seamuslee001 deleted the grant branch July 27, 2020 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants