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

Extract field wrangling to determineReturnProperties #14756

Merged
merged 1 commit into from
Jul 9, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jul 8, 2019

Overview

Code cleanup on exportComponents

Before

Less readable

After

More readable

Technical Details

This encases the wrangling of the field format to it's own function.

This code is heavily tested

Comments

@colemanw

@civibot
Copy link

civibot bot commented Jul 8, 2019

(Standard links)

@colemanw
Copy link
Member

colemanw commented Jul 8, 2019

This seems like an ok intermediate step but ultimately I would hope that the processor expects $fields to be in the already wrangled format, and so it seems to me the wrangling belongs in a util class somewhere and marked @deprecated and, finally, will be removed with the ExportUi extension is merged into core.

@eileenmcnaughton
Copy link
Contributor Author

@colemanw yeah - just trying to isolate the code that works with them

@colemanw
Copy link
Member

colemanw commented Jul 9, 2019

@eileenmcnaughton tests make sad face

This encases the wrangling of the field format to it's own function
@eileenmcnaughton
Copy link
Contributor Author

Hmm yeah - fixed - try again

@eileenmcnaughton eileenmcnaughton merged commit 7a10f07 into civicrm:master Jul 9, 2019
@eileenmcnaughton eileenmcnaughton deleted the wrangle branch July 9, 2019 03:57
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.

2 participants