Skip to content
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 - Support all fields as tokens #20880

Merged
merged 3 commits into from
Jul 19, 2021

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Jul 16, 2021

Overview

Improves SearchDisplay support for tokens (in link URLs, list labels, and rewritten fields).

Before

Only fields present in the SELECT clause could be tokens. And the selector didn't do a good job of differentiating the fields of multiple entities e.g. a search for Contact with Related Contacts would look like this:

image

After

Any field can be used as a token.
The SearchDisplay::Run API will add any fields used as tokens to the SELECT automatically.

image

Comments

The new token selector depends on #20879 (merged).

@civibot
Copy link

civibot bot commented Jul 16, 2021

(Standard links)

…idge

Symmetric bridge entities such as RelationshipCache which joins Contact to Contact
need to have the second entity id availble to join on.
Previously, only fields present in the SELECT clause could be tokens.
Now the SearchDisplay::Run api will add any fields used as tokens to the SELECT automatically.
@colemanw
Copy link
Member Author

retest this please

@seamuslee001
Copy link
Contributor

This seems to work for me on the PR test site and it has passed the unit tests. Merging

@seamuslee001 seamuslee001 merged commit 773983b into civicrm:master Jul 19, 2021
@seamuslee001 seamuslee001 deleted the searchKitTokenSelect branch July 19, 2021 04:06
@Anatoleallain
Copy link

This seems to work for me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants