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

[REF] APIv4 - Use new class_args metadata to remove special handing #22853

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

colemanw
Copy link
Member

Overview

Cleans up the internal process of resolving an APIv4 request, taking advantage of new metadata added in #22831 to remove workarounds and special cases.

Before

When creating an API request, special logic was needed for CustomValue and CiviCase apis.

After

Metadata used.

Comments

This is massively covered by existing tests.

@civibot civibot bot added the master label Feb 28, 2022
@civibot
Copy link

civibot bot commented Feb 28, 2022

(Standard links)

…tomValue and CiviCase entities.

Before: When creating an API request, special logic was needed for CustomValue and CiviCase apis.
After: Metadata used.
@totten
Copy link
Member

totten commented Feb 28, 2022

Looks like a good change. I think the affected use-cases should already have pretty decent test-coverage. Merge on pass.

@colemanw
Copy link
Member Author

@totten thanks. The test failure looks like the same caching bug which is solved by #22843.

@totten
Copy link
Member

totten commented Feb 28, 2022

Lol, right. Well, I've been working on a response to your observations over on that one.

@totten
Copy link
Member

totten commented Mar 6, 2022

jenkins, test this please

@colemanw colemanw merged commit f5e5ea2 into civicrm:master Mar 7, 2022
@totten totten deleted the api4CreateEvent branch March 7, 2022 20:22
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