SearchKit - Support Group.parents field and improve support for pseudo-fk fields
authorColeman Watts <coleman@civicrm.org>
Mon, 3 Apr 2023 20:16:27 +0000 (16:16 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 12 Apr 2023 00:55:26 +0000 (20:55 -0400)
commit77b92cfae5ee9384efc3066cc054afea3ed96a58
treede534fb59266c4c0c5093d77d22084d20cf47f62
parentb56074a8a58c139e28f01b0b6f4000304f58a62a
SearchKit - Support Group.parents field and improve support for pseudo-fk fields

This adds a 2nd field to the schema with options.prefetch = false (the first being Campaigns)
This time the field is serialized and not a real FK, but prefetch=false makes sense because of the potentially
very large number of groups in the database.
CRM/Contact/DAO/Group.php
CRM/Core/PseudoConstant.php
Civi/Api4/Service/Spec/SpecFormatter.php
ext/search_kit/Civi/Search/Admin.php
ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js
ext/search_kit/ang/crmSearchTasks/crmSearchInput/entityRef.html
tests/phpunit/api/v3/GroupTest.php
tests/phpunit/api/v4/Entity/GroupTest.php
xml/schema/Contact/Group.xml