[REF] Simplify location metadata handling in Export class
authoreileen <emcnaughton@wikimedia.org>
Fri, 24 Jul 2020 07:35:01 +0000 (19:35 +1200)
committereileen <emcnaughton@wikimedia.org>
Sun, 26 Jul 2020 21:45:08 +0000 (09:45 +1200)
commit072b9777870c88ad7f04f720a168a12ecc543a9f
tree064da77be52cbb35d369543dc8194b312f87c030
parentc8945af944b6ea5736ece12f5854b2a588ccaf66
[REF] Simplify location metadata handling in Export class

The metadata array that is passed into getTransformedFieldValue is just a subset of the class metadata. It is
- keyed slightly differently
- only location fields

Obviously passing this around when we can access it directly is silly and it was as a consquence as this code having
started off incredibly toxic and a slow incremental cleanup process that it was done this way. The cleanup had
not reached that array.

This has excellent test cover with multiple variations of phones & Ims tested along with all entities. These exposed
a tangental improvement (not replacing the word 'No' with '' ) Email On Hold.
CRM/Export/BAO/Export.php
CRM/Export/BAO/ExportProcessor.php
tests/phpunit/CRM/Export/BAO/ExportTest.php