SearchKit - Add @searchFields metadata to specify default search display fields per...
authorcolemanw <coleman@civicrm.org>
Mon, 21 Aug 2023 13:14:58 +0000 (09:14 -0400)
committercolemanw <coleman@civicrm.org>
Tue, 22 Aug 2023 19:06:35 +0000 (15:06 -0400)
commitbc2e41180d9969f92e6d39123b79279551b12db8
tree17d388385985dd74a92b34ed3a2ad5c4d197e6f3
parent68108b0a1dd4ea65d213030ed0b17d58cdf3cfc9
SearchKit - Add @searchFields metadata to specify default search display fields per-entity

- Use Contact.sort_name instead of display_name for searches and Autocompletes
- Adds more useful fields by default to a new SearchKit display
- Makes use of new metadata to improve generated default Autocomplete display
30 files changed:
CRM/Pledge/DAO/Pledge.php
Civi/Api4/Contact.php
Civi/Api4/Entity.php
Civi/Api4/Generic/AbstractEntity.php
Civi/Api4/Relationship.php
Civi/Api4/RelationshipCache.php
Civi/Api4/Service/Autocomplete/ActivityAutocompleteProvider.php
Civi/Api4/Service/Autocomplete/CaseAutocompleteProvider.php
Civi/Api4/Service/Autocomplete/ContactAutocompleteProvider.php
Civi/Api4/Service/Autocomplete/ContributionAutocompleteProvider.php
Civi/Api4/Service/Autocomplete/ContributionRecurAutocompleteProvider.php
Civi/Api4/Service/Autocomplete/ParticipantAutocompleteProvider.php [deleted file]
Civi/Api4/Service/Autocomplete/PledgeAutocompleteProvider.php
Civi/Api4/Service/Autocomplete/RelationshipAutocompleteProvider.php
Civi/Api4/Utils/CoreUtil.php
ext/afform/mock/tests/phpunit/api/v4/AfformAutocompleteUsageTest.php
ext/civi_contribute/Civi/Api4/Contribution.php
ext/civi_event/Civi/Api4/Participant.php
ext/civi_member/Civi/Api4/Membership.php
ext/civi_pledge/Civi/Api4/Pledge.php
ext/civigrant/Civi/Api4/Grant.php
ext/civigrant/Civi/Api4/Service/Autocomplete/GrantAutocompleteProvider.php [deleted file]
ext/search_kit/Civi/Api4/Action/SearchDisplay/GetDefault.php
ext/search_kit/Civi/Api4/Event/Subscriber/DefaultDisplaySubscriber.php
ext/search_kit/Civi/Search/Admin.php
ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js
ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayAutocomplete.component.js
tests/phpunit/api/v4/Action/AutocompleteTest.php
tests/phpunit/api/v4/Entity/EntityTest.php
xml/schema/Pledge/Pledge.xml