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 Explorer: show joins for write actions #20731

Merged
merged 3 commits into from
Jul 1, 2021

Conversation

colemanw
Copy link
Member

Overview

Displays information about joins for write operations in the API Explorer.
See #20677 for more about the new feature.

Before

New feature in API but not in API Explorer.

After

Now advertised.

Technical Details

When testing this I found an edge-case bug in the EntityRef widget which was failing to return an entity's name if it was requested as the id_field. Fixed in this PR.

colemanw added 3 commits June 30, 2021 16:48
It recently became possible in APIv4 to use joins during write operations;
now that feature is advertised in the Explorer.
Usually it's safe to assume the `id_field` === "id", which is automatically returned
by APIv3. However in the case of looking up records by name, etc. we must ensure that value
gets returned.
@civibot
Copy link

civibot bot commented Jun 30, 2021

(Standard links)

@civibot civibot bot added the master label Jun 30, 2021
@seamuslee001
Copy link
Contributor

This seems fine to me merging

@seamuslee001 seamuslee001 merged commit 5bd3a3f into civicrm:master Jul 1, 2021
@seamuslee001 seamuslee001 deleted the apiExplorerWriteJoins branch July 1, 2021 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants