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

CRM-18191 CRM-19064 refactor bizareness from PCP create to enable api… #8697

Merged
merged 2 commits into from
Sep 15, 2016

Conversation

eileenmcnaughton
Copy link
Contributor

… fn.

This add function is really wierd & blocking writing an api for pcp - this will get past issues in #7878

@eileenmcnaughton
Copy link
Contributor Author

@PalanteJon - this PR should make your PCP api work properly

@alar77
Copy link
Contributor

alar77 commented Sep 15, 2016

I checked this patch against my pcp api ( #9012 )
It basically works but I had to change class CRM_PCP_DAO_PCP &fields function, too.

The change is actually minimal:

// line 171
// from
        'pcp_id' => array(
//to
        'p_c_p_id' => array(

but this class is automatically generated, so I suppose the generator is to be patched in ordered to cope to the non standard "PCP" name.
I dont think I have the time to check and understand the whole code generation thing, so.. who could do that?

eileenmcnaughton and others added 2 commits September 15, 2016 21:13
… fn.

This add function is really wierd & blocking writing an api for pcp - this will get past issues in civicrm#7878
Copy link
Contributor

@seamuslee001 seamuslee001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as tests pass I think this should be good to merge.

@eileenmcnaughton
Copy link
Contributor Author

Added merge on pass per review by @seamuslee001 & @ggargani

There is a follow up PR for the api

@alar77
Copy link
Contributor

alar77 commented Sep 15, 2016

Mayeb I am looking in the wrong place but I still dont see tests for the api

@seamuslee001
Copy link
Contributor

test failure unrelated can be merged

@eileenmcnaughton eileenmcnaughton merged commit b7b0a95 into civicrm:master Sep 15, 2016
@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 are there api tests in the other PR - or just the SyntaxConformance ones?

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