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

Update both CAPI & FAPI client versions to stay binary-compatible #1448

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

rtyley
Copy link
Member

@rtyley rtyley commented Jul 6, 2022

The latest version of the CAPI client (v19) includes guardian/content-api-scala-client#359, which is binary-incompatible with previous versions of the CAPI client. This means we also need to update the FAPI client at the same time, as it uses the CAPI client - otherwise we would see a java.lang.NoSuchMethodError exception occurring when the FAPI client calls the CAPI client.

Note that guardian/content-api-scala-client#359 broke compilation of the CapiQueryGenerator class in facia-tool, so guardian/content-api-scala-client#363 (released as v19.0.3) is necessary to get compilation to pass.

@jonathonherbert was kind enough to double-check that the existing tests exercise the FAPI client, and also check for regressions in the CODE environment. I've deployed the final commit version to CODE, and that also looks good:

https://fronts.code.dev-gutools.co.uk/v2/issues/03a22dc5-18a2-4cbb-8733-50a07e2c5950

image

@rtyley rtyley changed the title WIP: Upgrade to CAPI client v19, FAPI client v4 Update both CAPI & FAPI client versions to stay binary-compatible Jul 7, 2022
Note that guardian/content-api-scala-client#359
broke compilation of the `CapiQueryGenerator` class in `facia-tool`,
so guardian/content-api-scala-client#363 was
be necessary to get compilation to pass.

Use guardian/content-api-scala-client#363
@rtyley rtyley force-pushed the upgrade-clients-to-capi-v19-and-fapi-v4 branch from b4dabb6 to f3fb9ae Compare July 7, 2022 11:15
@rtyley rtyley marked this pull request as ready for review July 7, 2022 11:41
@rtyley rtyley merged commit df3933c into main Jul 7, 2022
@rtyley rtyley deleted the upgrade-clients-to-capi-v19-and-fapi-v4 branch July 7, 2022 11:43
@prout-bot
Copy link

Seen on PROD (merged by @rtyley 12 minutes and 45 seconds ago) Please check your changes!

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