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

Fix more entities to support custom fields (via api) #11688

Merged
merged 1 commit into from
Feb 24, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

This moves us closer to the goal of being able to define custom data on 'any entity'. It takes us from a limited list of ones that work to a longer list of ones that still don't work

Before

Small list of entities that can have custom data added.

After

Most entities can have custom data added

Technical Details

I would really like to be able to say 'custom data works on any entity in 5.0.0.0' when it is released in April. However, per the list in the test there are still a few that don't work (about 10-15% I think).

Comments

Am also adding a fix to GroupOrganization so it supports 'update with id' as this BAO needed some tweaks

@mattwire
Copy link
Contributor

@eileenmcnaughton Any reason why ContributionRecur entity is not included here? Just wondered as I'm currently working on some payment stuff that requires custom fields on that entity.

@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

@mattwire it is included because it was previously tested & working. This patch moves us to marking the ones that DON'T work

@eileenmcnaughton
Copy link
Contributor Author

@colemanw another one of these - switches from a list of ones that DO work for custom data to a list of ones that don't

@colemanw
Copy link
Member

@eileenmcnaughton so this list applies only to the unit test?

@eileenmcnaughton
Copy link
Contributor Author

@colemanw so after merging the entities in this list https://github.com/civicrm/civicrm-core/pull/11688/files#diff-bddbee60cb233dfdfeeb835d1614fcdeR374 are the ones that still don't work (& yes that list applies only to that test, not other tests)

@colemanw
Copy link
Member

I'll merge this, but I"m curious about the implications to extension-defined entities. Will they get custom data by default?

@colemanw colemanw merged commit bc17b73 into civicrm:master Feb 24, 2018
@eileenmcnaughton
Copy link
Contributor Author

I think as long as they use basic get & pass through the entity they will

@mlutfy mlutfy added this to the 4.7.32 milestone Mar 6, 2018
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.

5 participants