Proposal - remove some fields from dedupe field options
When creating dedupe rules there are some fields in the drop down that don't make sense to me
Specifically
Irrational (technical term)
(if these are present the dedupe rule functionality won't apply)
- 'id' => 'Contact ID',
- 'external_identifier' => 'External Identifier',
Dumb (technical term)
- Contact.is_deceased
- 'addressee_id' => 'Addressee',
- 'addressee_custom' => 'Addressee Custom',
- 'do_not_email' => 'Do Not Email',
- 'do_not_mail' => 'Do Not Mail',
- 'do_not_phone' => 'Do Not Phone',
- 'do_not_sms' => 'Do Not Sms',
- 'do_not_trade' => 'Do Not Trade',
- 'email_greeting_id' => 'Email Greeting',
- 'email_greeting_custom' => 'Email Greeting Custom',
- 'external_identifier' => 'External Identifier',
- 'image_URL' => 'Image Url',
- 'is_opt_out' => 'No Bulk Emails (User Opt Out)',
- 'postal_greeting_id' => 'Postal Greeting',
- 'postal_greeting_custom' => 'Postal Greeting Custom',
- 'preferred_communication_method' => 'Preferred Communication Method',
- 'communication_style_id' => 'Communication Style',
- 'signature_html' => 'Signature Html',
- 'signature_text' => 'Signature Text',
**Marginal (laymans' term) **
- 'geo_code_1' => 'Latitude',
- 'geo_code_2' => 'Longitude',
- 'master_id' => 'Master Address ID',
Full list - excluding custom fields
```/**
- Get the list of supportedFields to test against.
- This is a statically maintained (in this test list).
*/ public function getSupportedFields() { return [ 'civicrm_address' => [ 'name' => 'Address Name', 'city' => 'City', 'country_id' => 'Country', 'county_id' => 'County', 'geo_code_1' => 'Latitude', 'geo_code_2' => 'Longitude', 'master_id' => 'Master Address ID', 'postal_code' => 'Postal Code', 'postal_code_suffix' => 'Postal Code Suffix', 'state_province_id' => 'State', 'street_address' => 'Street Address', 'supplemental_address_1' => 'Supplemental Address 1', 'supplemental_address_2' => 'Supplemental Address 2', 'supplemental_address_3' => 'Supplemental Address 3', ], 'civicrm_contact' => [ 'addressee_id' => 'Addressee', 'addressee_custom' => 'Addressee Custom', 'id' => 'Contact ID', 'source' => 'Contact Source', 'contact_sub_type' => 'Contact Subtype', 'do_not_email' => 'Do Not Email', 'do_not_mail' => 'Do Not Mail', 'do_not_phone' => 'Do Not Phone', 'do_not_sms' => 'Do Not Sms', 'do_not_trade' => 'Do Not Trade', 'email_greeting_id' => 'Email Greeting', 'email_greeting_custom' => 'Email Greeting Custom', 'external_identifier' => 'External Identifier', 'image_URL' => 'Image Url', 'legal_identifier' => 'Legal Identifier', 'legal_name' => 'Legal Name', 'nick_name' => 'Nickname', 'is_opt_out' => 'No Bulk Emails (User Opt Out)', 'organization_name' => 'Organization Name', 'postal_greeting_id' => 'Postal Greeting', 'postal_greeting_custom' => 'Postal Greeting Custom', 'preferred_communication_method' => 'Preferred Communication Method', 'preferred_language' => 'Preferred Language', 'sic_code' => 'Sic Code', 'user_unique_id' => 'Unique ID (OpenID)', 'sort_name' => 'Sort Name', 'communication_style_id' => 'Communication Style', ], 'civicrm_email' => [ 'email' => 'Email', 'signature_html' => 'Signature Html', 'signature_text' => 'Signature Text', ], 'civicrm_im' => [ 'name' => 'IM Screen Name', ], 'civicrm_note' => [ 'note' => 'Note', ], 'civicrm_openid' => [ 'openid' => 'OpenID', ], 'civicrm_phone' => [ 'phone_numeric' => 'Phone', 'phone_ext' => 'Phone Extension', ], 'civicrm_website' => [ 'url' => 'Website', ], ]; }
</details>
'sic_code' => 'Sic Code',
'user_unique_id' => 'Unique ID (OpenID)',