SearchKit - Remove confusing extra joins between Contact & relationshipCache
authorColeman Watts <coleman@civicrm.org>
Wed, 1 Jun 2022 12:47:22 +0000 (08:47 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 1 Jun 2022 12:47:22 +0000 (08:47 -0400)
commit84dcf8461044d017d3720466e0399bee062ddf76
treec034a8b551966d5537c4dc4e3073686800450bda
parenta9bd8bf246bb962374575be5fa19a7316e85954e
SearchKit - Remove confusing extra joins between Contact & relationshipCache

The option to use RelationshipCache as a base entity was added in #23066
but a side-effect was the addition of some confusing extra join options.

Before: Selecting Contact as the base entity, there are 3 joins available to "Contact Related Contact"
After: Only one join available to related contacts.
ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js