dev/core#982 add dedupe.getstatistics api
authoreileen <emcnaughton@wikimedia.org>
Wed, 22 May 2019 06:36:46 +0000 (18:36 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 24 May 2019 01:01:53 +0000 (13:01 +1200)
commite13fa54be8c1c972ee824819a598f5538fb6c3f9
tree8bd58bc4809259c64d7dc6ab94d8c22564defc89
parentc89a08b9a4f6931da11e68c76ae9c7bf42457874
dev/core#982 add dedupe.getstatistics api

Per gitlab the intent is to add a bunch of api so get the logic out of the form into somewhere more accessible.

Following agreement on this I would change all calls to CRM_Dedupe_Merger::getMergeStats to call this api
and get rid of the call to CRM_Core_BAO_PrevNextCache::retrieve from getMergeStats since that retrieve
function really does differrent stuff & is being kinda pointlessly overloaded here.
CRM/Core/BAO/PrevNextCache.php
CRM/Dedupe/Merger.php
api/v3/Dedupe.php [new file with mode: 0644]
api/v3/utils.php
tests/phpunit/CRM/Dedupe/MergerTest.php
tests/phpunit/api/v3/ContactTest.php
tests/phpunit/api/v3/SyntaxConformanceTest.php