frontend icon indicating copy to clipboard operation
frontend copied to clipboard

feat: deeply read in OphanApi

Open jamesgorrie opened this issue 3 years ago • 0 comments

What does this change?

Part of: https://github.com/guardian/dotcom-rendering/issues/5664

This adds the getDeeplyRead method to the OphanApi, which reads from deeplyread Ophan endpoint

We've added countryFromEdition as we're making the decision to choose what data to show based on someone's edition.

There is another pattern of using a person's country code from Fastly and then using a combo of country code for Ophan and edition for CAPI which has shown to surface strange results. Once this code is in we will be looking to remove this logic (and potentially the way we zip CAPI and Ophan data like we do).

There are no tests as we would just be testing the Ophan API

jamesgorrie avatar Aug 10 '22 16:08 jamesgorrie