-
-
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
APIv4 - Add filter for entity tags #20573
Conversation
(Standard links)
|
Test Result (9 failures / +9) |
Upgrade and code makes sense but clearly there is some issues around the used_for criteria field |
c861421
to
b24fa2a
Compare
I added legacy handling to |
@colemanw I tried this out on the PR test site but in both the APIv4 Explorer and in search kit I wasn't seeing the tags filter am I missing something? |
I see the problem. |
fc1b43f
to
b74b830
Compare
I was able to do it myself thanks to @demeritcowboy's brilliant new github action https://github.com/demeritcowboy/civicrm-regen |
25adf6f
to
a6d0f90
Compare
@colemanw I tried on the test site and I created a test child tag that was a child of volunteer and then tried with tags:name or tags = Test Child Tag and it got the following error
Then i tried changing the operator to be IN with field = tags
However doing IN with field tags:name worked and this was all done in the APIv4 Explorer |
@seamuslee001 the API explorer is more open ended and allows you to screw stuff up. Try SearchKit it restricts the operator and normalizes the input for you. |
Ok it works fine in Search Kit, I figure that it probably should be tied up in the Explorer but that can be a follow up |
Overview
Adds a SearchKit/APIv4 filter for tags similar to the "groups" filter recently added to SearchKit.
Before
No filter to search for Contacts/Activities/Cases/etc. by tag.
After
Filter is added to all taggable entities. Finds records with or without particular tag(s). Searching on a parent tag will find records with child tags.
Technical Details
I updated the
tag_used_for
option group to fix a couple issues with it: