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

APIv4 - Enable getFields to find fields across implicit FK joins #19516

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Feb 3, 2021

Overview

Now it is possible to retrieve field metadata for a joined entity via APIv4. E.g. from the Participant GetFields api, specifying the fieldName "event_id.title" will automatically retrieve field metadata from the Event API.

Before

Only entities own fields could be returned.

After

Possible to return fields from other entities.

Comments

This is the first step toward supporting implicit join fields in Search Kit.

Now it is possible to retrieve field metadata for a joined entity
@civibot
Copy link

civibot bot commented Feb 3, 2021

(Standard links)

@civibot civibot bot added the master label Feb 3, 2021
@eileenmcnaughton
Copy link
Contributor

Before

image

After - I can't quite capture it - but the box knows it is looking for an integer (I was expecting it to present an option list but I think the metadata on parent_event_id is actually not quite right)

image

Does what it says on the box

@eileenmcnaughton eileenmcnaughton merged commit fdc8f59 into civicrm:master Feb 3, 2021
@eileenmcnaughton eileenmcnaughton deleted the apiGetFkFields branch February 3, 2021 21:57
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.

2 participants