Change to unique clicks and opens, clarify unsubs
authorLars SG <lars@wildsight.ca>
Sat, 17 Apr 2021 16:47:15 +0000 (10:47 -0600)
committerlarssandergreen@gmail.com <larssandergreen@gmail.com>
Mon, 2 Aug 2021 19:35:59 +0000 (13:35 -0600)
commit2f2240dc5f8a9e29ae93bef5dac0129ed4ea5aaf
tree235c70a0ad035f5ae901d6cd84dafc1d59e1083a
parent7cbc1ab77a2793583aee58694f70e0f87d10d73d
Change to unique clicks and opens, clarify unsubs

Show 0 instead of n/a for stats that don't yet have any count

Before: Bounces, Open and Unsubs show n/a if there are 0.
After: All stats show 0 if api returns null.

Add intended recipients to API and A/B mailing report page

Remove in_distinct parameter from Bounce and Delivered in API and BAO

First commit removes is_distinct code from getTotalCount() for Bounces and Delivered in BAO, so we no longer need the is_distinct parameter for these functions, as it doesn't do anything. Changed API to match. These functions do not appear to be used elsewhere.

Fix comments for removed param for getTotalCount

Removing is_distrinct from getTotalCount

Forgot this!

Update mailing stats test

Update label for Tracked opens to Unique Opens, Click-throughs to Unique Clicks

Thanks @sluc23 for pointing this out
CRM/Mailing/Event/BAO/Bounce.php
CRM/Mailing/Event/BAO/Delivered.php
ang/crmMailing/services.js
ang/crmMailingAB/EditCtrl/report.html
api/v3/Mailing.php
tests/phpunit/api/v3/MailingTest.php