-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SearchKit - enable search by case role #22121
Conversation
(Standard links)
|
This allows the RelationshipCache entity to bridge not only Contact to Contact but also Contact to Case.
7d83e0a
to
63f3df5
Compare
Retest this please |
Overall working fine and the use case mentioned is working fine. Noticed minor glitch. Duplicate contacts are listed. However, grouping by contact id does fix it. I think this might have been always this way. Tested few other searches and refactoring didn't have regressions. |
@kurund that's because without specific relationship types specified, it is returning both sides of each relationship - in the screenshot, Alida Adams is clearly the case client, so is getting returned as the "B" side of each relationship. Adding an ON clause could filter those out. |
I have CiviCRM 5.44 and Compucorp Case extension 2.4.0 (last one). I use a lot Civicase. Then I realise that Searches with cases (dossier in French) were broken, see screenshots. Maybe I should have done some technical action (caches, database action, ...) .... See screenshots with searches with the PR. The PR was rolled back immediately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okie that makes sense. Good to merge IMO
Do you mean you are running the master branch? Can you check without the case extension to rule out potential issues with the extension? |
Thanks for retesting this @Guydn. I think the issue you experienced with missing forms is unrelated to this PR, as this doesn't touch any form code. |
Overview
Permits searching for contacts by case role in SearchKit.
Technical Details
Required heavy refactoring of the APIv4 EntityBridge code to permit asymmetric bridges and bridges to multiple entities.
Comments
In order to feel safe about this refactor I added a bunch of test coverage.