{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/comments/45616129","id":45616129,"diff_hunk":"@@ -1,43 +1,13 @@\n-'use strict';\n-\n-require('intl');\n-require('array.prototype.find');\n-var express = require('ft-next-express');\n-var logger = express.logger;\n-\n-// NB. Used by pagination for search results “About xx,xxx articles”.\n-// TODO. Move into n-handlebars.\n-var numberWithCommasHelper = require('./lib/number-with-commas');\n-\n-// create the app\n-var app = module.exports = express({\n-\thelpers: {\n-\t\tnumberWithCommas: numberWithCommasHelper\n-\t}\n-});\n-\n-app.get('/special-reports.?:extension(rss)?', require('./controllers/special-reports'));\n-app.get('/special-reports/:thingId.?:extension(rss)?', function (req, res, next) {\n-\treq.params.thingType = 'primarySectionId';\n-\treq.params.isSpecialReport = true;\n-\trequire('./controllers/v1-taxonomy')(req, res, next);\n-});\n-app.get('/special-reports/:specialReportId/special-reports.?:extension(rss)?', require('./controllers/related/special-reports'));\n-app.get('/special-reports/:specialReportId/:relatedTaxonomy.?:extension(rss)?', require('./controllers/related/tag'));\n-app.get('/news-feed.?:extension(rss)?', require('./controllers/news-feed'));\n-app.get('/top-rated/:thingType(genreId|brandId|peopleId|sectionsId|organisationsId|regionsId|topicsId|authorsId|subjectsId|specialReportsId|icbId|iptcId)/:thingId.?:extension(rss)?', require('./controllers/top-reviews'));\n-app.get('/stream/:thingType(primarySectionId|genreId|brandId|peopleId|sectionsId|organisationsId|regionsId|topicsId|authorsId|subjectsId|specialReportsId|icbId|iptcId)/:thingId.?:extension(rss)?', require('./controllers/v1-taxonomy'));\n-app.get('/:thingType(brands)/:thingId.?:extension(rss)?', require('./controllers/v2-taxonomy'));\n-app.get('/:thingType(people|organisations)/:thingId.?:extension(rss)?', require('./controllers/v1-v2-taxonomy'));\n-app.get('/:thingType(pages)/:thingId.?:extension(rss)?', require('./controllers/pages'));\n-app.get('/search', require('./controllers/search'));\n-app.get('/__gtg', function(req, res) {\n-\tres.sendStatus(200);\n-});\n-\n-\n-// Start the app\n-var port = process.env.PORT || 3001;\n-module.exports.listen = app.listen(port, function() {\n-\tlogger.info(\"Listening on \" + port);\n-});\n+require('babel/register')({\n+\twhitelist: [\n+\t\t'es6.arrowFunctions',\n+\t\t'es6.destructuring',\n+\t\t'es6.modules',\n+\t\t'es6.parameters',\n+\t\t'es6.spread',\n+\n+\t\t'react',\n+\t\t'strict'\n+\t]\n+});","path":"server/app.js","position":55,"original_position":55,"commit_id":"d61b3f24e811a2973a0583987bb7fe6e250d70b5","original_commit_id":"c75e9d23966f9e61c30aeda2a819f55f3bfc3a25","user":{"login":"ironsidevsquincy","id":74132,"avatar_url":"https://avatars.githubusercontent.com/u/74132?v=3","gravatar_id":"","url":"https://api.github.com/users/ironsidevsquincy","html_url":"https://github.com/ironsidevsquincy","followers_url":"https://api.github.com/users/ironsidevsquincy/followers","following_url":"https://api.github.com/users/ironsidevsquincy/following{/other_user}","gists_url":"https://api.github.com/users/ironsidevsquincy/gists{/gist_id}","starred_url":"https://api.github.com/users/ironsidevsquincy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironsidevsquincy/subscriptions","organizations_url":"https://api.github.com/users/ironsidevsquincy/orgs","repos_url":"https://api.github.com/users/ironsidevsquincy/repos","events_url":"https://api.github.com/users/ironsidevsquincy/events{/privacy}","received_events_url":"https://api.github.com/users/ironsidevsquincy/received_events","type":"User","site_admin":false},"body":"have a card to test the performance of using babel register. guess it's ok to add to streams for now","created_at":"2015-11-23T15:29:49Z","updated_at":"2015-11-23T15:29:49Z","html_url":"https://github.com/Financial-Times/next-stream-page/pull/756#discussion_r45616129","pull_request_url":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/756","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/comments/45616129"},"html":{"href":"https://github.com/Financial-Times/next-stream-page/pull/756#discussion_r45616129"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/756"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/756","id":51533802,"html_url":"https://github.com/Financial-Times/next-stream-page/pull/756","diff_url":"https://github.com/Financial-Times/next-stream-page/pull/756.diff","patch_url":"https://github.com/Financial-Times/next-stream-page/pull/756.patch","issue_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/756","number":756,"state":"open","locked":false,"title":"Start a React-ion of the stream page … sigh","user":{"login":"matthew-andrews","id":825088,"avatar_url":"https://avatars.githubusercontent.com/u/825088?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-andrews","html_url":"https://github.com/matthew-andrews","followers_url":"https://api.github.com/users/matthew-andrews/followers","following_url":"https://api.github.com/users/matthew-andrews/following{/other_user}","gists_url":"https://api.github.com/users/matthew-andrews/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-andrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-andrews/subscriptions","organizations_url":"https://api.github.com/users/matthew-andrews/orgs","repos_url":"https://api.github.com/users/matthew-andrews/repos","events_url":"https://api.github.com/users/matthew-andrews/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-andrews/received_events","type":"User","site_admin":false},"body":"Justification:-\r\n\r\n- Stream pages (e.g. FastFT) will have more advanced auto-reloading functionality which will not be user triggered, so accessibility type things like keeping selected text is more important than before.\r\n\r\nNote the React version of the stream page is just a simple list for now…","created_at":"2015-11-23T15:04:09Z","updated_at":"2015-11-23T15:29:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f781f77a46587753ff6cdf3d87ca0126a8d4106","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/756/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/756/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/756/comments","statuses_url":"https://api.github.com/repos/Financial-Times/next-stream-page/statuses/d61b3f24e811a2973a0583987bb7fe6e250d70b5","head":{"label":"Financial-Times:react","ref":"react","sha":"d61b3f24e811a2973a0583987bb7fe6e250d70b5","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":24595604,"name":"next-stream-page","full_name":"Financial-Times/next-stream-page","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-stream-page","description":"Streams","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-stream-page","forks_url":"https://api.github.com/repos/Financial-Times/next-stream-page/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-stream-page/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-stream-page/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-stream-page/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-stream-page/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-stream-page/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-stream-page/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-stream-page/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-stream-page/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-stream-page/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-stream-page/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-stream-page/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-stream-page/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-stream-page/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-stream-page/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-stream-page/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-stream-page/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-stream-page/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-stream-page/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-stream-page/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-stream-page/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-stream-page/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-stream-page/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-stream-page/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-stream-page/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-stream-page/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-stream-page/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-stream-page/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-stream-page/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-stream-page/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-stream-page/releases{/id}","created_at":"2014-09-29T13:09:59Z","updated_at":"2015-07-17T14:25:18Z","pushed_at":"2015-11-23T15:24:22Z","git_url":"git://github.com/Financial-Times/next-stream-page.git","ssh_url":"git@github.com:Financial-Times/next-stream-page.git","clone_url":"https://github.com/Financial-Times/next-stream-page.git","svn_url":"https://github.com/Financial-Times/next-stream-page","homepage":"","size":6078,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":1,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"7d7d292af1c60f6cc180b5e4e1df47855bb91311","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":24595604,"name":"next-stream-page","full_name":"Financial-Times/next-stream-page","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-stream-page","description":"Streams","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-stream-page","forks_url":"https://api.github.com/repos/Financial-Times/next-stream-page/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-stream-page/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-stream-page/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-stream-page/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-stream-page/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-stream-page/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-stream-page/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-stream-page/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-stream-page/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-stream-page/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-stream-page/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-stream-page/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-stream-page/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-stream-page/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-stream-page/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-stream-page/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-stream-page/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-stream-page/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-stream-page/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-stream-page/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-stream-page/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-stream-page/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-stream-page/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-stream-page/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-stream-page/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-stream-page/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-stream-page/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-stream-page/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-stream-page/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-stream-page/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-stream-page/releases{/id}","created_at":"2014-09-29T13:09:59Z","updated_at":"2015-07-17T14:25:18Z","pushed_at":"2015-11-23T15:24:22Z","git_url":"git://github.com/Financial-Times/next-stream-page.git","ssh_url":"git@github.com:Financial-Times/next-stream-page.git","clone_url":"https://github.com/Financial-Times/next-stream-page.git","svn_url":"https://github.com/Financial-Times/next-stream-page","homepage":"","size":6078,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/756"},"html":{"href":"https://github.com/Financial-Times/next-stream-page/pull/756"},"issue":{"href":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/756"},"comments":{"href":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/756/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/756/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/next-stream-page/pulls/756/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/next-stream-page/statuses/d61b3f24e811a2973a0583987bb7fe6e250d70b5"}}}}