Add Contact.get_merge_conflicts api
authoreileen <emcnaughton@wikimedia.org>
Sat, 1 Jun 2019 06:42:10 +0000 (18:42 +1200)
committereileen <emcnaughton@wikimedia.org>
Mon, 3 Jun 2019 02:18:34 +0000 (14:18 +1200)
commitaefc291e1e76037e296b80fdacd0652dc38045aa
treefe50cf08b23369e96c317d2fbe154b5b5d8adda6
parentb86939d7b8ad583d813ae8d62cd0abaa196c68cd
Add Contact.get_merge_conflicts api

THe goal here is to
1) improve testing
2) cleanup the code & define parameters where they are actually used rather than pass from pillar to post
3) expose to the api so we can be less coupled to the current form

I thought about putting the api on the Dedupe entity but my thinking is that actions relating to
individual pairs go on the contact entity & those relating to the batch find, cache, merge
functionality go on the Dedupe entity.

I'm doing another round of dedupe code cleanup at the moment... In conjunction with efforts to write an
angular form which highlights what functionality a form needs to access & where the code is awful....
CRM/Dedupe/Merger.php
api/v3/Contact.php
tests/phpunit/api/v3/ContactTest.php