-
-
Notifications
You must be signed in to change notification settings - Fork 827
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-19325 : Search contributions that are not in any batch #9492
Conversation
monishdeb
commented
Dec 2, 2016
•
edited by civicrm-builder
Loading
edited by civicrm-builder
- CRM-19325: Search contributions that are not in any batch
This PR exhibit what form-value should be given to an attribute so that the value get eventually processed into
|
@johanv its working for me, have a look! Here's my test-cases : |
There is a specific issue here (which it looks like you have solved) but, to test the solution further, how easy is it to expand it to search for contributions without pledges? If it is an elegant solution then hopefully we can start to add things like that on we get many requests of that variety (no membership, no event - or perhaps they could be replaced by 'no line item in this price set, with this price field, with this price label etc). |
@eileenmcnaughton pretty simple. Here's my patch https://gist.github.com/monishdeb/c9a0c8da2d1ba29bc7e1cb99d0927a79 on top of this changes to support Is pledge Contribution?-any-YesNo |
nice! |
any thoughts on unit tests? |
@eileenmcnaughton actually I didn't found any test coverage for Search Form other than Webtest. But lemme try to add one by using |
I think there are some group tests that use the search form. I don't think webtests are really maintained /maintainable :-( |
Yup there are https://github.com/civicrm/civicrm-core/tree/master/tests/phpunit/CRM/Contact/Form/Search/Custom on custom search form and these operate on saved data set and use the custom queries to assert the result. Lemme check how I can make use of Advance Search post process. |
8d33207
to
f5d0c7a
Compare
@eileenmcnaughton added unit test for batch filters. Have a look https://github.com/civicrm/civicrm-core/pull/9492/files#diff-c4448e6d970120e7c10d0a05bf6008b5R119 |
f51d7dd
to
9e3515a
Compare
@eileenmcnaughton I am merging this PR as I have covered unit-test and highlighted the behaviour with screenshot |