You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of ACC-622 I was updating fixtures. They were created in 2017, and the ES results have been enriched multiple times since.
When I try to update the 98b46b5f-17d3-40c2-8eaa-082df70c5f01 fixture ("The Economics of Migration" podcast"), the tests start failing.
in test/fixtures/content, if I update...
JUST items.json:
server/controllers/resolve.spec.js return an Array of distinct content items for every content ID it can find: [ it doesn’t match, but content the same??]
server/lib/get-content.spec.js test return an Array of content items for every content ID it can find: [got 5, expected 6]
Having rubber-ducked this with @thurstontye , we discovered that the 2017 Elastic Search result for podcast was "type": "podcast", (line 19), and the 2020 version is "type": "audio", "subtype": "podcast",. As far as we can figure out, the enriching logic is built around the type being podcast, so with the changed structure this fails.
It is highly likely this is currently happening on prod. However, we think this actually isn't an immediate problem because podcasts are free content (you can listen to them on any podcast app, you don't need to pay the FT subscription) and therefore not subject to syndication in the first place? Either way, this investigation is out of scope for ACC-622 and I can proceed without updating this particular fixture, but it feels like this needs fixing in the longer term, or deleting altogether if this sort of content doesn't fall under syndication rules?
The text was updated successfully, but these errors were encountered:
As part of ACC-622 I was updating fixtures. They were created in 2017, and the ES results have been enriched multiple times since.
When I try to update the
98b46b5f-17d3-40c2-8eaa-082df70c5f01
fixture ("The Economics of Migration" podcast"), the tests start failing.in
test/fixtures/content
, if I update...JUST items.json:
BOTH items.json and the ES fixture file
JUST ES fixture file
Having rubber-ducked this with @thurstontye , we discovered that the 2017 Elastic Search result for podcast was
"type": "podcast",
(line 19), and the 2020 version is"type": "audio", "subtype": "podcast",
. As far as we can figure out, the enriching logic is built around thetype
beingpodcast
, so with the changed structure this fails.It is highly likely this is currently happening on prod. However, we think this actually isn't an immediate problem because podcasts are free content (you can listen to them on any podcast app, you don't need to pay the FT subscription) and therefore not subject to syndication in the first place? Either way, this investigation is out of scope for ACC-622 and I can proceed without updating this particular fixture, but it feels like this needs fixing in the longer term, or deleting altogether if this sort of content doesn't fall under syndication rules?
The text was updated successfully, but these errors were encountered: