Skip to content

Commit

Permalink
Correct item id field within related array.
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianp26 committed May 10, 2017
1 parent f9ee6c2 commit 500d488
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
)
Expand Down
2 changes: 1 addition & 1 deletion test-resources/next-video-input.json
Original file line number Diff line number Diff line change
@@ -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":"<p>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. </p><p>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. </p><p>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. </p><p>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. </p><p>[MUSIC PLAYING] </p>","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"}
{"_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":"<p>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. </p><p>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. </p><p>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. </p><p>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. </p><p>[MUSIC PLAYING] </p>","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"}

0 comments on commit 500d488

Please sign in to comment.