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

dev/core#389 [preliminary cleanup+ test] Standardise metadat for custom field #14401

Merged
merged 2 commits into from
Jun 3, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Make metadata for custom fields more consistent, add test

Before

Less consistent

After

More consistent

Technical Details

In digging into dev/core#389 I found a major complexity in fixing it was inconsistent metadata available at different
points in the code. This simply adds metadata to the 'inner-most place' & makes the BAO_CustomQuery object use that

I didn't remove the options loop because I wanted to leave that out of scope as I can't see how / if it is used

Comments

@civibot
Copy link

civibot bot commented Jun 1, 2019

(Standard links)

@civibot civibot bot added the master label Jun 1, 2019
@eileenmcnaughton eileenmcnaughton changed the title dev/core#389 [preliminary cleanup+ tesr] Standardise metadat for custom field dev/core#389 [preliminary cleanup+ test] Standardise metadat for custom field Jun 1, 2019
…ld use

In digging into dev/core#389 I found a major complexity in fixing it was inconsistent metadata available at different
points in the code. This simply adds metadata to the 'inner-most place' & makes the BAO_CustomQuery object use that

I didn't remove the options loop because I wanted to leave that out of scope as I can't see how / if it is used

[test] add test for getImportableFields
@seamuslee001
Copy link
Contributor

Test fail relates @eileenmcnaughton

@eileenmcnaughton
Copy link
Contributor Author

hopefully this time

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 ok it passed this time

@seamuslee001
Copy link
Contributor

Changes make sense here standardising output and has good test coverage merging

@seamuslee001 seamuslee001 merged commit c0de5da into civicrm:master Jun 3, 2019
@seamuslee001 seamuslee001 deleted the cust_fields branch June 3, 2019 04:10
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