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 - Deprecate nonstandard syntax for implicit joins #20130

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

colemanw
Copy link
Member

Overview

The APIv4 prototype used a string-manipulation hack to make implicit joins appear more friendly, e.g. it would transform contact_id.* to contact.*.
However this made the generation of such joins less predictable, as not all FK fields end in _id (notably, custom ContactRef fields do not).

This preserves the nonstandard syntax for backward-compat while favoring the new syntax in the API Explorer.

Comments

For now the deprecated syntax works normally, just isn't advertised in the Api Explorer. Someday we can emit deprecation warnings, and maybe in the future remove them altogether.

The APIv4 prototype used a string-manipulation hack to make implicit joins appear more friendly,
e.g. it would transform `contact_id.*` to `contact.*`.
However this made the generation of such joins less predictable,
as not all FK fields end in `_id` (notably, custom ContactRef fields do not).

This preserves the nonstandard syntax for backward-compat while favoring the new syntx
in the API Explorer.
@civibot
Copy link

civibot bot commented Apr 23, 2021

(Standard links)

@civibot civibot bot added the master label Apr 23, 2021
@colemanw
Copy link
Member Author

retest this please

@colemanw
Copy link
Member Author

Test coverage is stellar; this can be merged without manual review.

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.

1 participant