{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/pandora/pulls/comments/39108960","id":39108960,"diff_hunk":"@@ -57,280 +58,188 @@ protected void configure() {\n           bind(REQUEST).to(HttpServletRequest.class);\n         }\n       })\n-      .addResource(new UserPreferenceResource(wikiCities))\n+      .addResource(new UserPreferenceResource(USER_PREFERENCES))\n       .build();\n-  private static final Integer INVALID_USER_ID = 0;\n-  private static final Integer VALID_USER_ID = 2;\n-  private static final Integer VALID_USER_ID_2 = 5;\n-\n-  private static final String EXISTING_PREF_NAME = \"pref-key\";\n-  private static final String TEST_PREF_VALUE = \"pref-val\";\n-  private static final String TEST_NEW_VALUE = \"newValue\";\n-  private static final String NOT_EXISTING_PREF_NAME = \"notExisted\";\n-  private static final String INVALID_NEW_PREF_VALUE = \"\";\n-\n-  @Before\n-  public void setup() throws java.sql.SQLException {\n-    List<Preference> userPreferences = new ImmutableList.Builder<Preference>()\n-        .add(new Preference(EXISTING_PREF_NAME, TEST_PREF_VALUE))\n-        .build();\n-\n-    when(wikiCities.getUserPreferences(VALID_USER_ID)).thenReturn(\n-        Optional.of(userPreferences));\n-    when(wikiCities.getUserPreferences(INVALID_USER_ID))\n-        .thenReturn(Optional.empty());\n-\n-    when(wikiCities.setUserPreference(eq(INVALID_USER_ID),\n-        eq(NOT_EXISTING_PREF_NAME),\n-        not(eq((INVALID_NEW_PREF_VALUE)))))\n-        .thenReturn(false);\n-    when(wikiCities.setUserPreference(eq(VALID_USER_ID),\n-        eq(EXISTING_PREF_NAME),\n-        not(eq(INVALID_NEW_PREF_VALUE))))\n-        .thenReturn(true);\n-\n-    when(wikiCities.setUserPreference(any(), any(), eq(INVALID_NEW_PREF_VALUE)))\n-        .thenThrow(new SQLException());\n-  }\n \n   @After\n   public void tearDown() {\n-    Mockito.reset(wikiCities);\n-    Mockito.reset(REQUEST);\n+    reset(REQUEST);\n+    reset(USER_PREFERENCES);\n   }\n \n   @Test\n   public void getUserPreferencesForValidUserWithAuthenticateHeader()\n-      throws java.sql.SQLException, java.io.IOException {\n+      throws SQLException, IOException {\n+\n+    when(USER_PREFERENCES.getPreferences(VALID_USER_ID)).thenReturn(\n+        Optional.of(\n+            buildPreferenceList(\n+                LANGUAGE_PREFERENCE,\n+                WIKI_SPECIFIC_FOUNDER_EMAIL_PREFERENCE)));\n \n     addHeaderToMockRequest(VALID_USER_ID);\n     Response response = getResponseForGetPreferences(VALID_USER_ID);\n \n-    assertEquals(HttpStatus.OK_200, response.getStatus());\n-\n     List<Preference> responseList = getResponseList(response);\n \n-    assertEquals(TEST_PREF_VALUE, getPreferenceValue(responseList, EXISTING_PREF_NAME));\n-\n-    verify(wikiCities).getUserPreferences(VALID_USER_ID);\n+    assertEquals(HttpStatus.OK_200, response.getStatus());\n+    assertTrue(preferenceListContains(responseList, LANGUAGE_PREFERENCE));\n+    assertTrue(preferenceListContains(responseList, WIKI_SPECIFIC_FOUNDER_EMAIL_PREFERENCE));\n+    verify(USER_PREFERENCES).getPreferences(VALID_USER_ID);\n   }\n \n   @Test\n   public void getUserPreferencesForValidUserWithOtherUserAuthenticateHeader()\n       throws SQLException {\n+\n     addHeaderToMockRequest(VALID_USER_ID_2);\n     Response response = getResponseForGetPreferences(VALID_USER_ID);\n \n     assertEquals(HttpStatus.UNAUTHORIZED_401, response.getStatus());\n-\n-    verify(wikiCities, times(0)).getUserPreferences(any());\n   }\n \n   @Test\n   public void getUserPreferencesForValidUserWithoutAuthenticateHeader()\n       throws SQLException {\n+\n     Response response = getResponseForGetPreferences(VALID_USER_ID);\n \n     assertEquals(HttpStatus.UNAUTHORIZED_401, response.getStatus());\n-\n-    verify(wikiCities, times(0)).getUserPreferences(any());\n   }\n \n   @Test\n   public void getUserPreferencesForInvalidUserWithAuthenticateHeader()\n-      throws java.sql.SQLException, java.io.IOException {\n-\n-    addHeaderToMockRequest(INVALID_USER_ID);\n-\n-    Response response = getResponseForGetPreferences(INVALID_USER_ID);\n-\n-    assertEquals(HttpStatus.NOT_FOUND_404, response.getStatus());\n-\n-    String expectedMessage = String.format(\"No preferences found for user %s\", INVALID_USER_ID);\n-    verifyResponseProblemTitle(response, expectedMessage);\n-    verify(wikiCities, times(1)).getUserPreferences(INVALID_USER_ID);\n-  }\n-\n-  @Test\n-  public void getUserPreferencesForInvalidUserWithOtherUserAuthenticateHeader()\n       throws SQLException, IOException {\n-    addHeaderToMockRequest(VALID_USER_ID_2);\n \n-    Response response = getResponseForGetPreferences(INVALID_USER_ID);\n+    when(USER_PREFERENCES.getPreferences(USER_WITHOUT_PREFERENCES)).thenReturn(Optional.empty());\n \n-    assertEquals(HttpStatus.UNAUTHORIZED_401, response.getStatus());\n+    addHeaderToMockRequest(USER_WITHOUT_PREFERENCES);\n+    Response response = getResponseForGetPreferences(USER_WITHOUT_PREFERENCES);\n \n-//    String expectedMessage = String.format(\"No preferences found for user %s\", INVALID_USER_ID);\n-//    verifyResponseProblemTitle(response, expectedMessage);\n-\n-    verify(wikiCities, times(0)).getUserPreferences(INVALID_USER_ID);\n-  }\n-\n-  @Test\n-  public void getUserPreferencesForInvalidUserWithoutAuthenticateHeader()\n-      throws SQLException, IOException {\n-\n-    Response response = getResponseForGetPreferences(INVALID_USER_ID);\n-\n-    assertEquals(HttpStatus.UNAUTHORIZED_401, response.getStatus());\n-\n-//    String expectedMessage = String.format(\"No preferences found for user %s\", INVALID_USER_ID);\n-//    verifyResponseProblemTitle(response, expectedMessage);\n-\n-    verify(wikiCities, times(0)).getUserPreferences(INVALID_USER_ID);\n+    assertEquals(HttpStatus.NOT_FOUND_404, response.getStatus());\n+    verify(USER_PREFERENCES, times(1)).getPreferences(USER_WITHOUT_PREFERENCES);\n   }\n \n-\n   @Test\n-  public void updatePreferenceForValidUserWithAuthenticateHeader()\n+  public void setPreferencesForValidUserWithAuthenticateHeader()\n       throws IOException, SQLException {\n \n-    addHeaderToMockRequest(VALID_USER_ID);\n-    Response response = getResponseForUpdatePreferences(VALID_USER_ID,\n-        EXISTING_PREF_NAME,\n-        TEST_NEW_VALUE);\n-\n-    assertEquals(HttpStatus.OK_200, response.getStatus());\n-    verifySetUserPreference(VALID_USER_ID, EXISTING_PREF_NAME, TEST_NEW_VALUE);\n-  }\n+    List<Preference> preferences = buildPreferenceList(LANGUAGE_PREFERENCE);\n \n-  @Test\n-  public void updatePreferenceForValidUserWithoutAuthenticateHeader()\n-      throws SQLException {\n+    when(USER_PREFERENCES.setPreferences(VALID_USER_ID, preferences)).thenReturn(true);\n \n-    Response response = getResponseForUpdatePreferences(VALID_USER_ID,\n-        EXISTING_PREF_NAME,\n-        TEST_NEW_VALUE);\n+    addHeaderToMockRequest(VALID_USER_ID);\n+    Response response = getResponseForSetPreferences(\n+        VALID_USER_ID,\n+        preferences);\n \n-    assertEquals(HttpStatus.UNAUTHORIZED_401, response.getStatus());\n-    verify(wikiCities, times(0)).setUserPreference(any(), any(), any());\n+    assertEquals(HttpStatus.NO_CONTENT_204, response.getStatus());\n+    verify(USER_PREFERENCES, times(1)).setPreferences(VALID_USER_ID, preferences);\n   }\n \n   @Test\n-  public void updatePreferenceForValidUserWithOtherUserAuthenticateHeader()\n-      throws SQLException {\n-\n-    addHeaderToMockRequest(VALID_USER_ID_2);\n+  public void setPreferencesForValidUserWithoutAuthenticateHeader()\n+      throws SQLException, IOException {\n \n-    Response response = getResponseForUpdatePreferences(VALID_USER_ID,\n-        EXISTING_PREF_NAME,\n-        TEST_NEW_VALUE);\n+    Response response = getResponseForSetPreferences(\n+        VALID_USER_ID,\n+        buildPreferenceList(LANGUAGE_PREFERENCE));\n \n     assertEquals(HttpStatus.UNAUTHORIZED_401, response.getStatus());\n-    verify(wikiCities, times(0)).setUserPreference(any(), any(), any());\n   }\n \n   @Test\n-  public void updatePreferenceForInvalidUserWithOtherUserAuthenticateHeader()\n-      throws IOException, SQLException {\n+  public void setPreferenceForValidUserWithOtherUserAuthenticateHeader()\n+      throws SQLException, IOException {\n \n     addHeaderToMockRequest(VALID_USER_ID_2);\n \n-    Response response = getResponseForUpdatePreferences(INVALID_USER_ID,\n-        EXISTING_PREF_NAME,\n-        TEST_NEW_VALUE);\n+    Response response = getResponseForSetPreferences(\n+        VALID_USER_ID,\n+        buildPreferenceList(LANGUAGE_PREFERENCE));\n \n     assertEquals(HttpStatus.UNAUTHORIZED_401, response.getStatus());\n-\n-    verify(wikiCities, times(0)).setUserPreference(any(), any(), any());\n   }\n \n-  @Test\n-  public void updatePreferenceForInvalidUserWithoutAuthenticateHeader()\n-      throws IOException, SQLException {\n-\n-    Response response = getResponseForUpdatePreferences(INVALID_USER_ID,\n-        EXISTING_PREF_NAME,\n-        TEST_NEW_VALUE);\n-\n-    assertEquals(HttpStatus.UNAUTHORIZED_401, response.getStatus());\n+  @Test()\n+  public void setPreferenceFailure() throws IOException, SQLException {\n \n-    verify(wikiCities, times(0)).setUserPreference(any(), any(), any());\n-  }\n+    List<Preference> preferences = buildPreferenceList(LANGUAGE_PREFERENCE);\n \n-  @Test()\n-  public void updateNotExistedPreference() throws IOException, SQLException {\n+    when(USER_PREFERENCES.setPreferences(VALID_USER_ID, preferences)).thenReturn(false);\n \n     addHeaderToMockRequest(VALID_USER_ID);\n-\n-    Response response = getResponseForUpdatePreferences(VALID_USER_ID,\n-        NOT_EXISTING_PREF_NAME,\n-        TEST_NEW_VALUE);\n+    Response response = getResponseForSetPreferences(\n+        VALID_USER_ID,\n+        buildPreferenceList(LANGUAGE_PREFERENCE));\n \n     assertEquals(HttpStatus.BAD_REQUEST_400, response.getStatus());\n-\n-    verifySetUserPreference(VALID_USER_ID, NOT_EXISTING_PREF_NAME, TEST_NEW_VALUE);\n-  }\n-\n-  private void addHeaderToMockRequest(Integer userId) {\n-    when(REQUEST.getHeader(APIGatewayAuthFactory.GATEWAY_USER_ID_HEADER))\n-        .thenReturn(String.valueOf(userId));\n+    verify(USER_PREFERENCES, times(1)).setPreferences(VALID_USER_ID, preferences);\n   }\n \n-  @Test()\n-  public void updateMultiplePreferencesForValidUserWithAuthenticateHeader()\n+  @Test\n+  public void updatePreferencesForValidUserWithAuthenticateHeader()\n       throws IOException, SQLException {\n \n-    when(wikiCities.setUserPreferences(eq(VALID_USER_ID),\n-        eq(existingInitialPreferencesHelper())))\n-        .thenReturn(true);\n+    List<Preference> preferences = buildPreferenceList(LANGUAGE_PREFERENCE);\n \n-    addHeaderToMockRequest(VALID_USER_ID);\n-    Response response = getResponseForUpdateMultiplePreferences(VALID_USER_ID,\n-        existingInitialPreferencesHelper());\n+    when(USER_PREFERENCES.updatePreferences(VALID_USER_ID, preferences)).thenReturn(true);\n \n-    assertEquals(HttpStatus.OK_200, response.getStatus());\n+    addHeaderToMockRequest(VALID_USER_ID);\n+    Response response = getResponseForUpdatePreferences(\n+        VALID_USER_ID,\n+        preferences);\n \n-    verify(wikiCities, times(1)).setUserPreferences(VALID_USER_ID, existingInitialPreferencesHelper());\n+    assertEquals(HttpStatus.NO_CONTENT_204, response.getStatus());\n+    verify(USER_PREFERENCES, times(1)).updatePreferences(VALID_USER_ID, preferences);\n   }\n \n   @Test\n-  public void updateMultiplePreferencesForValidUserWithoutAuthenticateHeader()\n-      throws SQLException {\n+  public void updatePreferencesForValidUserWithoutAuthenticateHeader()","path":"service/user-preference/src/test/java/com/wikia/userpreference/resources/UserPreferenceResourceTest.java","position":368,"original_position":368,"commit_id":"dcc8da0295dd1545d7e115991dbdb2670025f5bf","original_commit_id":"dcc8da0295dd1545d7e115991dbdb2670025f5bf","user":{"login":"WikiaTech","id":13279985,"avatar_url":"https://avatars.githubusercontent.com/u/13279985?v=3","gravatar_id":"","url":"https://api.github.com/users/WikiaTech","html_url":"https://github.com/WikiaTech","followers_url":"https://api.github.com/users/WikiaTech/followers","following_url":"https://api.github.com/users/WikiaTech/following{/other_user}","gists_url":"https://api.github.com/users/WikiaTech/gists{/gist_id}","starred_url":"https://api.github.com/users/WikiaTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WikiaTech/subscriptions","organizations_url":"https://api.github.com/users/WikiaTech/orgs","repos_url":"https://api.github.com/users/WikiaTech/repos","events_url":"https://api.github.com/users/WikiaTech/events{/privacy}","received_events_url":"https://api.github.com/users/WikiaTech/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) Refactor this method to throw at most one checked exception instead of: java.sql.SQLException, java.io.IOException [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n","created_at":"2015-09-09T23:17:19Z","updated_at":"2015-09-09T23:17:19Z","html_url":"https://github.com/Wikia/pandora/pull/412#discussion_r39108960","pull_request_url":"https://api.github.com/repos/Wikia/pandora/pulls/412","_links":{"self":{"href":"https://api.github.com/repos/Wikia/pandora/pulls/comments/39108960"},"html":{"href":"https://github.com/Wikia/pandora/pull/412#discussion_r39108960"},"pull_request":{"href":"https://api.github.com/repos/Wikia/pandora/pulls/412"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/pandora/pulls/412","id":43451030,"html_url":"https://github.com/Wikia/pandora/pull/412","diff_url":"https://github.com/Wikia/pandora/pull/412.diff","patch_url":"https://github.com/Wikia/pandora/pull/412.patch","issue_url":"https://api.github.com/repos/Wikia/pandora/issues/412","number":412,"state":"open","locked":false,"title":"preliminary implementation of delete, get, and skeleton logic for set","user":{"login":"nmonterroso","id":325800,"avatar_url":"https://avatars.githubusercontent.com/u/325800?v=3","gravatar_id":"","url":"https://api.github.com/users/nmonterroso","html_url":"https://github.com/nmonterroso","followers_url":"https://api.github.com/users/nmonterroso/followers","following_url":"https://api.github.com/users/nmonterroso/following{/other_user}","gists_url":"https://api.github.com/users/nmonterroso/gists{/gist_id}","starred_url":"https://api.github.com/users/nmonterroso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmonterroso/subscriptions","organizations_url":"https://api.github.com/users/nmonterroso/orgs","repos_url":"https://api.github.com/users/nmonterroso/repos","events_url":"https://api.github.com/users/nmonterroso/events{/privacy}","received_events_url":"https://api.github.com/users/nmonterroso/received_events","type":"User","site_admin":false},"body":"@Wikia/services-team \r\nhttps://wikia-inc.atlassian.net/browse/SERVICES-649\r\n\r\nAdding `get` and `delete` logic for preferences in the new table. Also leaving some skeleton logic for `set`s. @sqreek when this is merged can you move your refactor of `set` here?\r\n\r\nTODO:\r\n- [ ] add tests for UserPreference\r\n- [ ] change the UserPreferenceResource to use this instead of `WikiCities`","created_at":"2015-08-26T20:57:06Z","updated_at":"2015-09-09T23:17:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1ec8dbde2e920446f74cb61adc140d20ad7bf22","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/pandora/pulls/412/commits","review_comments_url":"https://api.github.com/repos/Wikia/pandora/pulls/412/comments","review_comment_url":"https://api.github.com/repos/Wikia/pandora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/pandora/issues/412/comments","statuses_url":"https://api.github.com/repos/Wikia/pandora/statuses/dcc8da0295dd1545d7e115991dbdb2670025f5bf","head":{"label":"Wikia:SERVICES-649","ref":"SERVICES-649","sha":"dcc8da0295dd1545d7e115991dbdb2670025f5bf","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":26663749,"name":"pandora","full_name":"Wikia/pandora","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/pandora","description":"API Service","fork":false,"url":"https://api.github.com/repos/Wikia/pandora","forks_url":"https://api.github.com/repos/Wikia/pandora/forks","keys_url":"https://api.github.com/repos/Wikia/pandora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/pandora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/pandora/teams","hooks_url":"https://api.github.com/repos/Wikia/pandora/hooks","issue_events_url":"https://api.github.com/repos/Wikia/pandora/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/pandora/events","assignees_url":"https://api.github.com/repos/Wikia/pandora/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/pandora/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/pandora/tags","blobs_url":"https://api.github.com/repos/Wikia/pandora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/pandora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/pandora/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/pandora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/pandora/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/pandora/languages","stargazers_url":"https://api.github.com/repos/Wikia/pandora/stargazers","contributors_url":"https://api.github.com/repos/Wikia/pandora/contributors","subscribers_url":"https://api.github.com/repos/Wikia/pandora/subscribers","subscription_url":"https://api.github.com/repos/Wikia/pandora/subscription","commits_url":"https://api.github.com/repos/Wikia/pandora/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/pandora/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/pandora/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/pandora/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/pandora/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/pandora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/pandora/merges","archive_url":"https://api.github.com/repos/Wikia/pandora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/pandora/downloads","issues_url":"https://api.github.com/repos/Wikia/pandora/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/pandora/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/pandora/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/pandora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/pandora/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/pandora/releases{/id}","created_at":"2014-11-15T00:29:06Z","updated_at":"2015-08-18T21:15:19Z","pushed_at":"2015-09-09T23:16:43Z","git_url":"git://github.com/Wikia/pandora.git","ssh_url":"git@github.com:Wikia/pandora.git","clone_url":"https://github.com/Wikia/pandora.git","svn_url":"https://github.com/Wikia/pandora","homepage":null,"size":22837,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"Wikia:master","ref":"master","sha":"a74650067c23459a7f4001f868da784f6c5c48dd","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":26663749,"name":"pandora","full_name":"Wikia/pandora","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/pandora","description":"API Service","fork":false,"url":"https://api.github.com/repos/Wikia/pandora","forks_url":"https://api.github.com/repos/Wikia/pandora/forks","keys_url":"https://api.github.com/repos/Wikia/pandora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/pandora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/pandora/teams","hooks_url":"https://api.github.com/repos/Wikia/pandora/hooks","issue_events_url":"https://api.github.com/repos/Wikia/pandora/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/pandora/events","assignees_url":"https://api.github.com/repos/Wikia/pandora/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/pandora/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/pandora/tags","blobs_url":"https://api.github.com/repos/Wikia/pandora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/pandora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/pandora/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/pandora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/pandora/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/pandora/languages","stargazers_url":"https://api.github.com/repos/Wikia/pandora/stargazers","contributors_url":"https://api.github.com/repos/Wikia/pandora/contributors","subscribers_url":"https://api.github.com/repos/Wikia/pandora/subscribers","subscription_url":"https://api.github.com/repos/Wikia/pandora/subscription","commits_url":"https://api.github.com/repos/Wikia/pandora/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/pandora/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/pandora/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/pandora/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/pandora/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/pandora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/pandora/merges","archive_url":"https://api.github.com/repos/Wikia/pandora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/pandora/downloads","issues_url":"https://api.github.com/repos/Wikia/pandora/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/pandora/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/pandora/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/pandora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/pandora/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/pandora/releases{/id}","created_at":"2014-11-15T00:29:06Z","updated_at":"2015-08-18T21:15:19Z","pushed_at":"2015-09-09T23:16:43Z","git_url":"git://github.com/Wikia/pandora.git","ssh_url":"git@github.com:Wikia/pandora.git","clone_url":"https://github.com/Wikia/pandora.git","svn_url":"https://github.com/Wikia/pandora","homepage":null,"size":22837,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/pandora/pulls/412"},"html":{"href":"https://github.com/Wikia/pandora/pull/412"},"issue":{"href":"https://api.github.com/repos/Wikia/pandora/issues/412"},"comments":{"href":"https://api.github.com/repos/Wikia/pandora/issues/412/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/pandora/pulls/412/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/pandora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/pandora/pulls/412/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/pandora/statuses/dcc8da0295dd1545d7e115991dbdb2670025f5bf"}}}}