{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/comments/42736213","id":42736213,"diff_hunk":"@@ -11,190 +11,96 @@ import localSettings = require('../../config/localSettings');\n  * Commoon part should be extracted and moved to new class WikiaRequestHelper(?)\n  */\n export class MainPageRequestHelper {\n-\tparams: MainPageRequestParams;\n+\tparams: ArticleRequestParams;\n \n-\tconstructor(params: MainPageRequestParams) {\n+\tconstructor(params: ArticleRequestParams) {\n \t\tthis.params = params;\n \t}\n \n \t/**\n-\t * @desc Get category items for given section name passed in params.\n-\t * Updated pageData inside return object with fetched data.\n-\t * @param wikiVariables\n-\t * @param next\n-\t */\n-\tgetCategory(wikiVariables: any, next: Function): void {\n-\t\tthis.getCategoryData((error: any, pageData: any) => {\n-\t\t\tnext(error, {\n-\t\t\t\tserver: this.createServerData(this.params.wikiDomain),\n-\t\t\t\twikiVariables: wikiVariables || {},\n-\t\t\t\tpageData: pageData || {}\n-\t\t\t});\n-\t\t}, false);\n-\t}\n-\n-\t/**\n-\t * @desc Get section items for given category name passed in params.\n-\t * Updated pageData inside return object with fetched data.\n-\t * @param wikiVariables\n-\t * @param next\n+\t * @TODO CONCF-761 shared between Article.ts and MainPage.ts - should be moved\n+\t * @param title\n \t */\n-\tgetSection(wikiVariables: any, next: Function): void {\n-\t\tthis.getSectionData((error: any, pageData: any) => {\n-\t\t\tnext(error, {\n-\t\t\t\tserver: this.createServerData(this.params.wikiDomain),\n-\t\t\t\twikiVariables: wikiVariables || {},\n-\t\t\t\tpageData: pageData || {}\n-\t\t\t});\n-\t\t}, false);\n+\tsetTitle(title: string): void {\n+\t\tthis.params.title = title;\n \t}\n \n-\t/**\n-\t * @param {Array} requests - array of requests to process\n-\t * @param {Function} callback - callback which should be called with data from requests\n-\t * @param {boolean} getWikiVariables - flag if wiki's variables should be fetched\n-\t */\n-\tprivate processRequests(requests: any, callback: Function, getWikiVariables: boolean): void {\n-\t\tPromise.settle(requests)\n+\tgetWikiVariablesAndDetails(): any {\n+\t\tvar requests = [\n+\t\t\tnew MediaWiki.ArticleRequest(this.params).mainPageDetailsAndAdsContext(),\n+\t\t\tnew MediaWiki.WikiRequest({\n+\t\t\t\twikiDomain: this.params.wikiDomain\n+\t\t\t}).wikiVariables()\n+\t\t];\n+\n+\t\tlogger.debug(this.params, 'Fetching wiki variables and main page details');\n+\n+\t\t/**\n+\t\t * @see https://github.com/petkaantonov/bluebird/blob/master/API.md#settle---promise\n+\t\t *\n+\t\t * From Promise.settle documentation:\n+\t\t * Given an array, or a promise of an array, which contains promises (or a mix of promises and values)\n+\t\t * return a promise that is fulfilled when all the items in the array are either fulfilled or rejected.\n+\t\t * The fulfillment value is an array of PromiseInspection instances at respective positions in relation\n+\t\t * to the input array. This method is useful for when you have an array of promises and you'd like to know\n+\t\t * when all of them resolve - either by fulfilling of rejecting.\n+\t\t */\n+\t\treturn Promise.settle(requests)\n \t\t\t.then((results: Promise.Inspection<Promise<any>>[]) => {\n-\t\t\t\tvar curatedContentPromise: Promise.Inspection<Promise<any>> = results[0],\n-\t\t\t\t\tarticlePromise: Promise.Inspection<Promise<any>> = results [1],\n-\t\t\t\t\twikiPromise: Promise.Inspection<Promise<any>> = results[2],\n-\t\t\t\t\tcuratedContent: any,\n-\t\t\t\t\tarticleData: any,\n-\t\t\t\t\tpageData: any = {},\n-\t\t\t\t\twikiVariables: any = {};\n+\t\t\t\tvar mainPageDataPromise: Promise.Inspection<Promise<any>> = results[0],\n+\t\t\t\t\twikiVariablesPromise: Promise.Inspection<Promise<any>> = results[1],\n+\t\t\t\t\tisMainPageDataPromiseFulfilled = mainPageDataPromise.isFulfilled(),\n+\t\t\t\t\tisWikiVariablesPromiseFulfilled = wikiVariablesPromise.isFulfilled(),\n+\t\t\t\t\tmainPageData: any,\n+\t\t\t\t\twikiVariables: any,\n+\t\t\t\t\tdata: any;\n \n \t\t\t\t// if promise is fulfilled - use resolved value, if it's not - use rejection reason\n-\t\t\t\tcuratedContent = curatedContentPromise.isFulfilled() ?\n-\t\t\t\t\tcuratedContentPromise.value() :\n-\t\t\t\t\tcuratedContentPromise.reason();\n+\t\t\t\tmainPageData = isMainPageDataPromiseFulfilled ?\n+\t\t\t\t\tmainPageDataPromise.value() :\n+\t\t\t\t\tmainPageDataPromise.reason();\n \n-\t\t\t\tpageData.curatedContent = curatedContent;\n+\t\t\t\twikiVariables = isWikiVariablesPromiseFulfilled ?\n+\t\t\t\t\twikiVariablesPromise.value() :\n+\t\t\t\t\twikiVariablesPromise.reason();\n \n-\t\t\t\tif (getWikiVariables) {\n-\t\t\t\t\twikiVariables = wikiPromise.isFulfilled() ?\n-\t\t\t\t\t\twikiPromise.value() :\n-\t\t\t\t\t\twikiPromise.reason();\n+\t\t\t\tif (!isWikiVariablesPromiseFulfilled) {\n+\t\t\t\t\treturn Promise.reject(new WikiVariablesRequestError(wikiVariables));\n \t\t\t\t}\n \n-\t\t\t\tarticleData = articlePromise.isFulfilled() ?\n-\t\t\t\t\tarticlePromise.value() :\n-\t\t\t\t\tarticlePromise.reason();\n-\n-\t\t\t\tpageData.articleData = articleData.data;\n+\t\t\t\tdata = {\n+\t\t\t\t\tmainPageData,\n+\t\t\t\t\twikiVariables,\n+\t\t\t\t\tserver: Utils.createServerData(localSettings, this.params.wikiDomain)\n+\t\t\t\t};\n \n-\t\t\t\tcallback(curatedContent.exception, pageData, wikiVariables.data);\n+\t\t\t\tif (isMainPageDataPromiseFulfilled) {\n+\t\t\t\t\treturn Promise.resolve(data);\n+\t\t\t\t} else {\n+\t\t\t\t\treturn Promise.reject(new MainPageDataRequestError(data));\n+\t\t\t\t}\n \t\t\t});\n \t}\n+}\n \n-\t/**\n-\t * @desc Fetch data for section\n-\t * @param {Function} callback\n-\t * @param {boolean} getWikiVariables\n-\t */\n-\tprivate getSectionData(callback: Function, getWikiVariables: boolean = false): void {\n-\t\tvar requests: any = [];\n-\n-\t\tlogger.debug(this.params, 'Fetching section data');\n-\t\trequests.push(new MediaWiki.ArticleRequest(this.params).curatedContentSection(this.params.sectionName));\n-\n-\t\trequests = this.fetchArticleData(requests);\n-\t\tif (getWikiVariables) {\n-\t\t\trequests = this.fetchWikiVariables(requests);\n-\t\t}\n-\n-\t\tthis.processRequests(requests, callback, getWikiVariables);\n-\n-\t}\n-\n-\t/**\n-\t * @desc Fetch data for category\n-\t * @param {Function} callback\n-\t * @param {boolean} getWikiVariables\n-\t */\n-\tprivate getCategoryData(callback: Function, getWikiVariables: boolean = false): void {\n-\t\tvar requests: any = [];\n-\n-\t\tlogger.debug(this.params, 'Fetching category data');\n-\t\trequests.push(\n-\t\t\tnew MediaWiki.ArticleRequest(this.params).category(this.params.categoryName, {\n-\t\t\t\t//set the default values for thumbnail - take from: server/facets/api/category.ts:22\n-\t\t\t\twidth: 300,\n-\t\t\t\theight: 300\n-\t\t\t})\n-\t\t);\n-\n-\t\trequests = this.fetchArticleData(requests);\n-\n-\t\tif (getWikiVariables) {\n-\t\t\trequests = this.fetchWikiVariables(requests);\n-\t\t}\n-\n-\t\tthis.processRequests(requests, callback, getWikiVariables);\n-\t}\n+export class MainPageDataRequestError {\n+\tprivate data: any;\n \n-\t/**\n-\t * Create MW request for article data and return array with request\n-\t * @param requests\n-\t * @returns {Array} array of requests\n-\t */\n-\tprivate fetchArticleData(requests: any): any {\n-\t\tlogger.debug(this.params, 'Fetching article data');\n-\t\trequests.push(\n-\t\t\tnew MediaWiki.ArticleRequest(this.params).article(this.params.title, this.params.redirect)\n-\t\t);\n-\n-\t\treturn requests;\n+\tconstructor(data: any) {\n+\t\tError.apply(this, arguments);\n+\t\tthis.data = data;\n \t}\n+}\n+MainPageDataRequestError.prototype = Object.create(Error.prototype);\n \n-\t/**\n-\t * Create MW request for wiki variables and return array with request\n-\t * @param requests\n-\t * @returns {Array} array of requests\n-\t */\n-\tprivate fetchWikiVariables(requests: any): any {\n-\t\tlogger.debug({wiki: this.params.wikiDomain}, 'Fetching wiki variables');\n-\t\trequests.push(new MediaWiki.WikiRequest({\n-\t\t\twikiDomain: this.params.wikiDomain\n-\t\t}).wikiVariables());\n-\n-\t\treturn requests;\n-\t}\n+export class WikiVariablesRequestError {","path":"server/lib/MainPage.ts","position":214,"original_position":214,"commit_id":"e5cb149ed7e5aa69787b804f6c7792d50df42d06","original_commit_id":"e5cb149ed7e5aa69787b804f6c7792d50df42d06","user":{"login":"bognix","id":3473327,"avatar_url":"https://avatars.githubusercontent.com/u/3473327?v=3","gravatar_id":"","url":"https://api.github.com/users/bognix","html_url":"https://github.com/bognix","followers_url":"https://api.github.com/users/bognix/followers","following_url":"https://api.github.com/users/bognix/following{/other_user}","gists_url":"https://api.github.com/users/bognix/gists{/gist_id}","starred_url":"https://api.github.com/users/bognix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bognix/subscriptions","organizations_url":"https://api.github.com/users/bognix/orgs","repos_url":"https://api.github.com/users/bognix/repos","events_url":"https://api.github.com/users/bognix/events{/privacy}","received_events_url":"https://api.github.com/users/bognix/received_events","type":"User","site_admin":false},"body":"already defined somewhere","created_at":"2015-10-22T11:19:41Z","updated_at":"2015-10-22T11:19:41Z","html_url":"https://github.com/Wikia/mercury/pull/1538#discussion_r42736213","pull_request_url":"https://api.github.com/repos/Wikia/mercury/pulls/1538","_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments/42736213"},"html":{"href":"https://github.com/Wikia/mercury/pull/1538#discussion_r42736213"},"pull_request":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1538"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/1538","id":48088575,"html_url":"https://github.com/Wikia/mercury/pull/1538","diff_url":"https://github.com/Wikia/mercury/pull/1538.diff","patch_url":"https://github.com/Wikia/mercury/pull/1538.patch","issue_url":"https://api.github.com/repos/Wikia/mercury/issues/1538","number":1538,"state":"open","locked":false,"title":"XW-30 Fetch only article details and adsContext not all main page on categories and sections","user":{"login":"bognix","id":3473327,"avatar_url":"https://avatars.githubusercontent.com/u/3473327?v=3","gravatar_id":"","url":"https://api.github.com/users/bognix","html_url":"https://github.com/bognix","followers_url":"https://api.github.com/users/bognix/followers","following_url":"https://api.github.com/users/bognix/following{/other_user}","gists_url":"https://api.github.com/users/bognix/gists{/gist_id}","starred_url":"https://api.github.com/users/bognix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bognix/subscriptions","organizations_url":"https://api.github.com/users/bognix/orgs","repos_url":"https://api.github.com/users/bognix/repos","events_url":"https://api.github.com/users/bognix/events{/privacy}","received_events_url":"https://api.github.com/users/bognix/received_events","type":"User","site_admin":false},"body":"Jira ticket: https://wikia-inc.atlassian.net/browse/XW-30\r\n\r\nRelated PR: \r\n - app => https://github.com/Wikia/app/pull/8817\r\n - api-tests => https://github.com/Wikia/api-tests/pull/139\r\n\r\nAPP should be released first","created_at":"2015-10-19T15:41:27Z","updated_at":"2015-10-22T11:19:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ee885297119df48e3ce63d68636b5f64d6943c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/mercury/pulls/1538/commits","review_comments_url":"https://api.github.com/repos/Wikia/mercury/pulls/1538/comments","review_comment_url":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/mercury/issues/1538/comments","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/e5cb149ed7e5aa69787b804f6c7792d50df42d06","head":{"label":"Wikia:XW-30","ref":"XW-30","sha":"e5cb149ed7e5aa69787b804f6c7792d50df42d06","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":16710430,"name":"mercury","full_name":"Wikia/mercury","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/mercury","description":"Wikia Web application","fork":false,"url":"https://api.github.com/repos/Wikia/mercury","forks_url":"https://api.github.com/repos/Wikia/mercury/forks","keys_url":"https://api.github.com/repos/Wikia/mercury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/mercury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/mercury/teams","hooks_url":"https://api.github.com/repos/Wikia/mercury/hooks","issue_events_url":"https://api.github.com/repos/Wikia/mercury/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/mercury/events","assignees_url":"https://api.github.com/repos/Wikia/mercury/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/mercury/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/mercury/tags","blobs_url":"https://api.github.com/repos/Wikia/mercury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/mercury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/mercury/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/mercury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/mercury/languages","stargazers_url":"https://api.github.com/repos/Wikia/mercury/stargazers","contributors_url":"https://api.github.com/repos/Wikia/mercury/contributors","subscribers_url":"https://api.github.com/repos/Wikia/mercury/subscribers","subscription_url":"https://api.github.com/repos/Wikia/mercury/subscription","commits_url":"https://api.github.com/repos/Wikia/mercury/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/mercury/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/mercury/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/mercury/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/mercury/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/mercury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/mercury/merges","archive_url":"https://api.github.com/repos/Wikia/mercury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/mercury/downloads","issues_url":"https://api.github.com/repos/Wikia/mercury/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/mercury/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/mercury/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/mercury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/mercury/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/mercury/releases{/id}","created_at":"2014-02-10T21:44:25Z","updated_at":"2015-10-20T12:10:12Z","pushed_at":"2015-10-22T11:19:09Z","git_url":"git://github.com/Wikia/mercury.git","ssh_url":"git@github.com:Wikia/mercury.git","clone_url":"https://github.com/Wikia/mercury.git","svn_url":"https://github.com/Wikia/mercury","homepage":"","size":69089,"stargazers_count":12,"watchers_count":12,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":20,"forks":2,"open_issues":20,"watchers":12,"default_branch":"dev"}},"base":{"label":"Wikia:dev","ref":"dev","sha":"34376519f3767e3b42432bf3a3e1c4c939279457","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":16710430,"name":"mercury","full_name":"Wikia/mercury","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/mercury","description":"Wikia Web application","fork":false,"url":"https://api.github.com/repos/Wikia/mercury","forks_url":"https://api.github.com/repos/Wikia/mercury/forks","keys_url":"https://api.github.com/repos/Wikia/mercury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/mercury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/mercury/teams","hooks_url":"https://api.github.com/repos/Wikia/mercury/hooks","issue_events_url":"https://api.github.com/repos/Wikia/mercury/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/mercury/events","assignees_url":"https://api.github.com/repos/Wikia/mercury/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/mercury/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/mercury/tags","blobs_url":"https://api.github.com/repos/Wikia/mercury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/mercury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/mercury/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/mercury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/mercury/languages","stargazers_url":"https://api.github.com/repos/Wikia/mercury/stargazers","contributors_url":"https://api.github.com/repos/Wikia/mercury/contributors","subscribers_url":"https://api.github.com/repos/Wikia/mercury/subscribers","subscription_url":"https://api.github.com/repos/Wikia/mercury/subscription","commits_url":"https://api.github.com/repos/Wikia/mercury/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/mercury/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/mercury/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/mercury/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/mercury/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/mercury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/mercury/merges","archive_url":"https://api.github.com/repos/Wikia/mercury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/mercury/downloads","issues_url":"https://api.github.com/repos/Wikia/mercury/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/mercury/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/mercury/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/mercury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/mercury/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/mercury/releases{/id}","created_at":"2014-02-10T21:44:25Z","updated_at":"2015-10-20T12:10:12Z","pushed_at":"2015-10-22T11:19:09Z","git_url":"git://github.com/Wikia/mercury.git","ssh_url":"git@github.com:Wikia/mercury.git","clone_url":"https://github.com/Wikia/mercury.git","svn_url":"https://github.com/Wikia/mercury","homepage":"","size":69089,"stargazers_count":12,"watchers_count":12,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":20,"forks":2,"open_issues":20,"watchers":12,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1538"},"html":{"href":"https://github.com/Wikia/mercury/pull/1538"},"issue":{"href":"https://api.github.com/repos/Wikia/mercury/issues/1538"},"comments":{"href":"https://api.github.com/repos/Wikia/mercury/issues/1538/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1538/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1538/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/mercury/statuses/e5cb149ed7e5aa69787b804f6c7792d50df42d06"}}}}