diff --git a/mapper.go b/mapper.go index 60b75e8..d625915 100644 --- a/mapper.go +++ b/mapper.go @@ -9,7 +9,7 @@ const ( videoUUIDField = "id" relatedField = "related" deletedField = "deleted" - relatedItemIDField = "id" + relatedItemIDField = "uuid" collectionType = "story-package" contentURIPrefix = "http://next-video-content-collection-mapper.svc.ft.com/content-collection/story-package/" ) diff --git a/test-resources/next-video-input.json b/test-resources/next-video-input.json index 7a7241e..480c01e 100644 --- a/test-resources/next-video-input.json +++ b/test-resources/next-video-input.json @@ -1 +1 @@ -{"_id":"58d8d6cc789d4c000f6b0169","updatedAt":"2017-04-03T16:30:11.106Z","createdAt":"2017-03-27T09:09:32.541Z","mioId":762380,"title":"Trump trade under scrutiny","createdBy":"seb.morton-clark","encoding":{"job":358759376,"status":"COMPLETE","outputs":[{"audioCodec":"mp3","duration":65904,"mediaType":"audio/mpeg","url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/0x0.mp3"},{"audioCodec":"aac","videoCodec":"h264","duration":65940,"mediaType":"video/mp4","height":360,"width":640,"url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/640x360.mp4"},{"audioCodec":"aac","videoCodec":"h264","duration":65940,"mediaType":"video/mp4","height":720,"width":1280,"url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/1280x720.mp4"}]},"__v":0,"byline":"Filmed by Niclola Stansfield. Produced by Seb Morton-Clark.","description":"Global equities are on the defensive, led by weaker commodities and financials as investors scrutinise the viability of the Trump trade. The FT's Mike Mackenzie reports.","image":"https://api.ft.com/content/ffc60243-2b77-439a-a6c9-0f3603ee5f83","standfirst":"Mike Mackenzie provides analysis of the morning's market news","updatedBy":"seb.morton-clark","isPublished":false,"related":[{"id":"c4cde316-128c-11e7-80f4-13e067d5072c","title":"Stocks and dollar slide as ‘Trump trade’ fades"}],"annotations":[{"id":"http://api.ft.com/things/71a5efa5-e6e0-3ce1-9190-a7eac8bef325","predicate":"http://www.ft.com/ontology/classification/isClassifiedBy"}],"encodings":[{"mioId":762380,"name":"Trump trade under scrutiny","primary":true,"status":"COMPLETE","job":358759376,"outputs":[{"url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/0x0.mp3","mediaType":"audio/mpeg","duration":65904,"audioCodec":"mp3"},{"url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/640x360.mp4","width":640,"height":360,"mediaType":"video/mp4","duration":65940,"videoCodec":"h264","audioCodec":"aac"},{"url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/1280x720.mp4","width":1280,"height":720,"mediaType":"video/mp4","duration":65940,"videoCodec":"h264","audioCodec":"aac"}]}],"canBeSyndicated":true,"transcription":{"status":"COMPLETE","job":"1579674","transcript":"

Here's what we're watching with trading underway in London. Global equities under pressure led by weaker commodities and financials as investors scrutinise the viability of the Trump trade. The dollar is weaker. Havens like yen, gold, and government bonds finding buyers.

As the dust settles over the failure to replace Obamacare, focus now on whether tax reform and other fiscal measures will eventuate. This is where the rubber meets the road for the Trump trade. High flying equity markets had been underpinned by the promise of big tax cuts and fiscal stimulus. And Wall Street is souring.

One big beneficiary of lower corporate taxes under Trump are small caps. They are now down 2 and 1/2% for the year. While the sector is still much higher since November, this is a key market barometer of prospects for the Trump trade.

Now while many still think some measure of tax reform or spending will eventuate, markets are very wary, namely of the risk that Congress and the Trump administration fail to reach agreement on legislation, that unlike health care reform, matters a great deal more to investors.

[MUSIC PLAYING]

","captions":[{"format":"vtt","url":"https://next-video-editor.ft.com/e2290d14-7e80-4db8-a715-949da4de9a07.vtt","mediaType":"text/vtt"}]},"format":[],"type":"video","id":"e2290d14-7e80-4db8-a715-949da4de9a07"} \ No newline at end of file +{"_id":"58d8d6cc789d4c000f6b0169","updatedAt":"2017-04-03T16:30:11.106Z","createdAt":"2017-03-27T09:09:32.541Z","mioId":762380,"title":"Trump trade under scrutiny","createdBy":"seb.morton-clark","encoding":{"job":358759376,"status":"COMPLETE","outputs":[{"audioCodec":"mp3","duration":65904,"mediaType":"audio/mpeg","url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/0x0.mp3"},{"audioCodec":"aac","videoCodec":"h264","duration":65940,"mediaType":"video/mp4","height":360,"width":640,"url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/640x360.mp4"},{"audioCodec":"aac","videoCodec":"h264","duration":65940,"mediaType":"video/mp4","height":720,"width":1280,"url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/1280x720.mp4"}]},"__v":0,"byline":"Filmed by Niclola Stansfield. Produced by Seb Morton-Clark.","description":"Global equities are on the defensive, led by weaker commodities and financials as investors scrutinise the viability of the Trump trade. The FT's Mike Mackenzie reports.","image":"https://api.ft.com/content/ffc60243-2b77-439a-a6c9-0f3603ee5f83","standfirst":"Mike Mackenzie provides analysis of the morning's market news","updatedBy":"seb.morton-clark","isPublished":false,"related":[{"uuid":"c4cde316-128c-11e7-80f4-13e067d5072c","title":"Stocks and dollar slide as ‘Trump trade’ fades"}],"annotations":[{"id":"http://api.ft.com/things/71a5efa5-e6e0-3ce1-9190-a7eac8bef325","predicate":"http://www.ft.com/ontology/classification/isClassifiedBy"}],"encodings":[{"mioId":762380,"name":"Trump trade under scrutiny","primary":true,"status":"COMPLETE","job":358759376,"outputs":[{"url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/0x0.mp3","mediaType":"audio/mpeg","duration":65904,"audioCodec":"mp3"},{"url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/640x360.mp4","width":640,"height":360,"mediaType":"video/mp4","duration":65940,"videoCodec":"h264","audioCodec":"aac"},{"url":"http://ftvideo.prod.zencoder.outputs.s3.amazonaws.com/e2290d14-7e80-4db8-a715-949da4de9a07/1280x720.mp4","width":1280,"height":720,"mediaType":"video/mp4","duration":65940,"videoCodec":"h264","audioCodec":"aac"}]}],"canBeSyndicated":true,"transcription":{"status":"COMPLETE","job":"1579674","transcript":"

Here's what we're watching with trading underway in London. Global equities under pressure led by weaker commodities and financials as investors scrutinise the viability of the Trump trade. The dollar is weaker. Havens like yen, gold, and government bonds finding buyers.

As the dust settles over the failure to replace Obamacare, focus now on whether tax reform and other fiscal measures will eventuate. This is where the rubber meets the road for the Trump trade. High flying equity markets had been underpinned by the promise of big tax cuts and fiscal stimulus. And Wall Street is souring.

One big beneficiary of lower corporate taxes under Trump are small caps. They are now down 2 and 1/2% for the year. While the sector is still much higher since November, this is a key market barometer of prospects for the Trump trade.

Now while many still think some measure of tax reform or spending will eventuate, markets are very wary, namely of the risk that Congress and the Trump administration fail to reach agreement on legislation, that unlike health care reform, matters a great deal more to investors.

[MUSIC PLAYING]

","captions":[{"format":"vtt","url":"https://next-video-editor.ft.com/e2290d14-7e80-4db8-a715-949da4de9a07.vtt","mediaType":"text/vtt"}]},"format":[],"type":"video","id":"e2290d14-7e80-4db8-a715-949da4de9a07"} \ No newline at end of file