{"action":"created","comment":{"url":"https://api.github.com/repos/SonarSource/sonarqube/pulls/comments/30582860","id":30582860,"diff_hunk":"@@ -0,0 +1,253 @@\n+/*\n+ * SonarQube, open source software quality management tool.\n+ * Copyright (C) 2008-2014 SonarSource\n+ * mailto:contact AT sonarsource DOT com\n+ *\n+ * SonarQube is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU Lesser General Public\n+ * License as published by the Free Software Foundation; either\n+ * version 3 of the License, or (at your option) any later version.\n+ *\n+ * SonarQube is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n+ * Lesser General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Lesser General Public License\n+ * along with this program; if not, write to the Free Software Foundation,\n+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\n+ */\n+\n+package org.sonar.server.component.ws;\n+\n+import com.google.common.collect.ImmutableMap;\n+import org.junit.After;\n+import org.junit.Before;\n+import org.junit.ClassRule;\n+import org.junit.Rule;\n+import org.junit.Test;\n+import org.junit.experimental.categories.Category;\n+import org.junit.rules.ExpectedException;\n+import org.sonar.api.config.Settings;\n+import org.sonar.api.resources.Qualifiers;\n+import org.sonar.api.resources.ResourceType;\n+import org.sonar.api.resources.ResourceTypes;\n+import org.sonar.api.resources.Scopes;\n+import org.sonar.api.rule.RuleKey;\n+import org.sonar.api.utils.System2;\n+import org.sonar.api.web.UserRole;\n+import org.sonar.core.component.ComponentDto;\n+import org.sonar.core.component.SnapshotDto;\n+import org.sonar.core.issue.db.IssueDto;\n+import org.sonar.core.persistence.DbSession;\n+import org.sonar.core.persistence.DbTester;\n+import org.sonar.core.purge.PurgeDao;\n+import org.sonar.core.purge.PurgeProfiler;\n+import org.sonar.core.resource.ResourceDao;\n+import org.sonar.core.rule.RuleDto;\n+import org.sonar.server.component.ComponentCleanerService;\n+import org.sonar.server.component.ComponentTesting;\n+import org.sonar.server.component.SnapshotTesting;\n+import org.sonar.server.component.db.ComponentDao;\n+import org.sonar.server.component.db.SnapshotDao;\n+import org.sonar.server.db.DbClient;\n+import org.sonar.server.es.EsTester;\n+import org.sonar.server.exceptions.ForbiddenException;\n+import org.sonar.server.issue.IssueTesting;\n+import org.sonar.server.issue.db.IssueDao;\n+import org.sonar.server.issue.index.IssueAuthorizationIndexer;\n+import org.sonar.server.issue.index.IssueIndexDefinition;\n+import org.sonar.server.issue.index.IssueIndexer;\n+import org.sonar.server.rule.RuleTesting;\n+import org.sonar.server.rule.db.RuleDao;\n+import org.sonar.server.source.index.SourceLineDoc;\n+import org.sonar.server.source.index.SourceLineIndexDefinition;\n+import org.sonar.server.source.index.SourceLineIndexer;\n+import org.sonar.server.test.index.TestDoc;\n+import org.sonar.server.test.index.TestIndexDefinition;\n+import org.sonar.server.test.index.TestIndexer;\n+import org.sonar.server.tester.UserSessionRule;\n+import org.sonar.server.ws.WsTester;\n+import org.sonar.test.DbTests;\n+\n+import java.util.Arrays;\n+\n+import static org.assertj.core.api.Assertions.assertThat;\n+import static org.mockito.Matchers.anyString;\n+import static org.mockito.Mockito.mock;\n+import static org.mockito.Mockito.when;\n+\n+@Category(DbTests.class)\n+public class ProjectsDeleteActionTest {\n+\n+  @ClassRule\n+  public static DbTester db = new DbTester();\n+  @ClassRule\n+  public static EsTester es = new EsTester().addDefinitions(new IssueIndexDefinition(new Settings()), new SourceLineIndexDefinition(new Settings()),\n+    new TestIndexDefinition(new Settings()));\n+  @Rule\n+  public UserSessionRule userSessionRule = UserSessionRule.standalone();\n+  @Rule\n+  public ExpectedException expectedException = ExpectedException.none();\n+  WsTester ws;\n+  DbClient dbClient;\n+  DbSession dbSession;\n+  ResourceType resourceType;\n+\n+  @Before\n+  public void setUp() throws Exception {\n+    ComponentDao componentDao = new ComponentDao();\n+    ResourceDao resourceDao = new ResourceDao(db.myBatis(), System2.INSTANCE);\n+    PurgeDao purgeDao = new PurgeDao(db.myBatis(), resourceDao, new PurgeProfiler(), System2.INSTANCE);\n+    dbClient = new DbClient(db.database(), db.myBatis(), componentDao, purgeDao, new RuleDao(System2.INSTANCE), new IssueDao(db.myBatis()), new SnapshotDao(System2.INSTANCE));\n+    dbSession = dbClient.openSession(false);\n+    resourceType = mock(ResourceType.class);\n+    when(resourceType.getBooleanProperty(anyString())).thenReturn(true);\n+    ResourceTypes mockResourceTypes = mock(ResourceTypes.class);\n+    when(mockResourceTypes.get(anyString())).thenReturn(resourceType);\n+    ws = new WsTester(new ProjectsWs(new ProjectsDeleteAction(new ComponentCleanerService(dbClient, new IssueAuthorizationIndexer(dbClient, es.client()), new IssueIndexer(\n+      dbClient, es.client()), new SourceLineIndexer(dbClient, es.client()), new TestIndexer(dbClient, es.client()), mockResourceTypes), dbClient, userSessionRule)));\n+    db.truncateTables();\n+    es.truncateIndices();\n+  }\n+\n+  @After\n+  public void tearDown() throws Exception {\n+    dbSession.close();\n+  }\n+\n+  @Test\n+  public void delete_projects_and_data_in_db_by_uuids() throws Exception {\n+    userSessionRule.setGlobalPermissions(UserRole.ADMIN);\n+    long snapshotId1 = insertNewProjectInDbAndReturnSnapshotId(1);\n+    long snapshotId2 = insertNewProjectInDbAndReturnSnapshotId(2);\n+    long snapshotId3 = insertNewProjectInDbAndReturnSnapshotId(3);\n+    long snapshotId4 = insertNewProjectInDbAndReturnSnapshotId(4);\n+\n+    ws.newGetRequest(\"api/projects\", \"delete\")\n+      .setParam(\"uuids\", \"project-uuid-1, project-uuid-3, project-uuid-4\").execute();\n+    dbSession.commit();\n+\n+    assertThat(dbClient.componentDao().getByUuids(dbSession, Arrays.asList(\"project-uuid-1\", \"project-uuid-3\", \"project-uuid-4\"))).isEmpty();\n+    assertThat(dbClient.componentDao().getByUuid(dbSession, \"project-uuid-2\")).isNotNull();\n+    assertThat(dbClient.snapshotDao().getNullableByKey(dbSession, snapshotId1)).isNull();\n+    assertThat(dbClient.snapshotDao().getNullableByKey(dbSession, snapshotId3)).isNull();\n+    assertThat(dbClient.snapshotDao().getNullableByKey(dbSession, snapshotId4)).isNull();\n+    assertThat(dbClient.snapshotDao().getNullableByKey(dbSession, snapshotId2)).isNotNull();\n+    assertThat(dbClient.issueDao().selectByKeys(dbSession, Arrays.asList(\"issue-key-1\", \"issue-key-3\", \"issue-key-4\"))).isEmpty();\n+    assertThat(dbClient.issueDao().selectByKey(dbSession, \"issue-key-2\")).isNotNull();\n+  }\n+\n+  @Test\n+  public void delete_projects_and_data_in_db_by_keys() throws Exception {\n+    userSessionRule.setGlobalPermissions(UserRole.ADMIN);\n+    insertNewProjectInDbAndReturnSnapshotId(1);\n+    insertNewProjectInDbAndReturnSnapshotId(2);\n+    insertNewProjectInDbAndReturnSnapshotId(3);\n+    insertNewProjectInDbAndReturnSnapshotId(4);\n+\n+    ws.newGetRequest(\"api/projects\", \"delete\")\n+      .setParam(\"keys\", \"project-key-1, project-key-3, project-key-4\").execute();\n+    dbSession.commit();\n+\n+    assertThat(dbClient.componentDao().getByUuids(dbSession, Arrays.asList(\"project-uuid-1\", \"project-uuid-3\", \"project-uuid-4\"))).isEmpty();\n+    assertThat(dbClient.componentDao().getByUuid(dbSession, \"project-uuid-2\")).isNotNull();\n+  }\n+\n+  @Test\n+  public void delete_documents_indexes() throws Exception {\n+    userSessionRule.setGlobalPermissions(UserRole.ADMIN);\n+    insertNewProjectInIndexes(1);\n+    insertNewProjectInIndexes(2);\n+    insertNewProjectInIndexes(3);\n+    insertNewProjectInIndexes(4);\n+\n+    ws.newGetRequest(\"api/projects\", \"delete\")\n+      .setParam(\"keys\", \"project-key-1, project-key-3, project-key-4\").execute();\n+\n+    String remainingProjectUuid = \"project-uuid-2\";\n+    assertThat(es.getDocumentFieldValues(IssueIndexDefinition.INDEX, IssueIndexDefinition.TYPE_ISSUE, IssueIndexDefinition.FIELD_ISSUE_PROJECT_UUID))\n+      .containsOnly(remainingProjectUuid);\n+    assertThat(es.getDocumentFieldValues(IssueIndexDefinition.INDEX, IssueIndexDefinition.TYPE_AUTHORIZATION, IssueIndexDefinition.FIELD_AUTHORIZATION_PROJECT_UUID))\n+      .containsOnly(remainingProjectUuid);\n+    assertThat(es.getDocumentFieldValues(SourceLineIndexDefinition.INDEX, SourceLineIndexDefinition.TYPE, SourceLineIndexDefinition.FIELD_PROJECT_UUID))\n+      .containsOnly(remainingProjectUuid);\n+    assertThat(es.getDocumentFieldValues(TestIndexDefinition.INDEX, TestIndexDefinition.TYPE, TestIndexDefinition.FIELD_PROJECT_UUID))\n+      .containsOnly(remainingProjectUuid);\n+  }\n+\n+  @Test\n+  public void web_service_returns_204() throws Exception {\n+    userSessionRule.setGlobalPermissions(UserRole.ADMIN);\n+    insertNewProjectInDbAndReturnSnapshotId(1);\n+\n+    WsTester.Result result = ws.newGetRequest(\"api/projects\", \"delete\").setParam(\"uuids\", \"project-uuid-1\").execute();\n+\n+    assertThat(result.outputAsString().trim()).isEmpty();","path":"server/sonar-server/src/test/java/org/sonar/server/component/ws/ProjectsDeleteActionTest.java","position":186,"original_position":186,"commit_id":"305a34c506f68044291961aa7ad7181112448578","original_commit_id":"305a34c506f68044291961aa7ad7181112448578","user":{"login":"jblievremont","id":1734254,"avatar_url":"https://avatars.githubusercontent.com/u/1734254?v=3","gravatar_id":"","url":"https://api.github.com/users/jblievremont","html_url":"https://github.com/jblievremont","followers_url":"https://api.github.com/users/jblievremont/followers","following_url":"https://api.github.com/users/jblievremont/following{/other_user}","gists_url":"https://api.github.com/users/jblievremont/gists{/gist_id}","starred_url":"https://api.github.com/users/jblievremont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jblievremont/subscriptions","organizations_url":"https://api.github.com/users/jblievremont/orgs","repos_url":"https://api.github.com/users/jblievremont/repos","events_url":"https://api.github.com/users/jblievremont/events{/privacy}","received_events_url":"https://api.github.com/users/jblievremont/received_events","type":"User","site_admin":false},"body":"You could also call ``result.assertNoContent()``","created_at":"2015-05-19T09:31:07Z","updated_at":"2015-05-19T09:31:07Z","html_url":"https://github.com/SonarSource/sonarqube/pull/312#discussion_r30582860","pull_request_url":"https://api.github.com/repos/SonarSource/sonarqube/pulls/312","_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonarqube/pulls/comments/30582860"},"html":{"href":"https://github.com/SonarSource/sonarqube/pull/312#discussion_r30582860"},"pull_request":{"href":"https://api.github.com/repos/SonarSource/sonarqube/pulls/312"}}},"pull_request":{"url":"https://api.github.com/repos/SonarSource/sonarqube/pulls/312","id":35707440,"html_url":"https://github.com/SonarSource/sonarqube/pull/312","diff_url":"https://github.com/SonarSource/sonarqube/pull/312.diff","patch_url":"https://github.com/SonarSource/sonarqube/pull/312.patch","issue_url":"https://api.github.com/repos/SonarSource/sonarqube/issues/312","number":312,"state":"open","locked":false,"title":"WS api/projects/delete delete project and associated data - SONAR-6528","user":{"login":"teryk","id":1247713,"avatar_url":"https://avatars.githubusercontent.com/u/1247713?v=3","gravatar_id":"","url":"https://api.github.com/users/teryk","html_url":"https://github.com/teryk","followers_url":"https://api.github.com/users/teryk/followers","following_url":"https://api.github.com/users/teryk/following{/other_user}","gists_url":"https://api.github.com/users/teryk/gists{/gist_id}","starred_url":"https://api.github.com/users/teryk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teryk/subscriptions","organizations_url":"https://api.github.com/users/teryk/orgs","repos_url":"https://api.github.com/users/teryk/repos","events_url":"https://api.github.com/users/teryk/events{/privacy}","received_events_url":"https://api.github.com/users/teryk/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-05-19T08:43:02Z","updated_at":"2015-05-19T09:31:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63d920f472c7b06f2415e5ce061fab95a2954785","assignee":{"login":"jblievremont","id":1734254,"avatar_url":"https://avatars.githubusercontent.com/u/1734254?v=3","gravatar_id":"","url":"https://api.github.com/users/jblievremont","html_url":"https://github.com/jblievremont","followers_url":"https://api.github.com/users/jblievremont/followers","following_url":"https://api.github.com/users/jblievremont/following{/other_user}","gists_url":"https://api.github.com/users/jblievremont/gists{/gist_id}","starred_url":"https://api.github.com/users/jblievremont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jblievremont/subscriptions","organizations_url":"https://api.github.com/users/jblievremont/orgs","repos_url":"https://api.github.com/users/jblievremont/repos","events_url":"https://api.github.com/users/jblievremont/events{/privacy}","received_events_url":"https://api.github.com/users/jblievremont/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/SonarSource/sonarqube/pulls/312/commits","review_comments_url":"https://api.github.com/repos/SonarSource/sonarqube/pulls/312/comments","review_comment_url":"https://api.github.com/repos/SonarSource/sonarqube/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SonarSource/sonarqube/issues/312/comments","statuses_url":"https://api.github.com/repos/SonarSource/sonarqube/statuses/305a34c506f68044291961aa7ad7181112448578","head":{"label":"SonarSource:feature/server/ws_delete_proj","ref":"feature/server/ws_delete_proj","sha":"305a34c506f68044291961aa7ad7181112448578","user":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":1222504,"name":"sonarqube","full_name":"SonarSource/sonarqube","owner":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SonarSource/sonarqube","description":"Put your technical debt under control","fork":false,"url":"https://api.github.com/repos/SonarSource/sonarqube","forks_url":"https://api.github.com/repos/SonarSource/sonarqube/forks","keys_url":"https://api.github.com/repos/SonarSource/sonarqube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonarqube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonarqube/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonarqube/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonarqube/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonarqube/events","assignees_url":"https://api.github.com/repos/SonarSource/sonarqube/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonarqube/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonarqube/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonarqube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonarqube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonarqube/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonarqube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonarqube/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonarqube/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonarqube/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonarqube/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonarqube/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonarqube/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonarqube/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonarqube/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonarqube/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonarqube/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonarqube/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonarqube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonarqube/merges","archive_url":"https://api.github.com/repos/SonarSource/sonarqube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonarqube/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonarqube/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonarqube/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonarqube/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonarqube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonarqube/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonarqube/releases{/id}","created_at":"2011-01-05T11:05:17Z","updated_at":"2015-05-19T01:09:30Z","pushed_at":"2015-05-19T09:16:18Z","git_url":"git://github.com/SonarSource/sonarqube.git","ssh_url":"git@github.com:SonarSource/sonarqube.git","clone_url":"https://github.com/SonarSource/sonarqube.git","svn_url":"https://github.com/SonarSource/sonarqube","homepage":"http://www.sonarqube.org","size":670200,"stargazers_count":610,"watchers_count":610,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":334,"mirror_url":null,"open_issues_count":10,"forks":334,"open_issues":10,"watchers":610,"default_branch":"master"}},"base":{"label":"SonarSource:master","ref":"master","sha":"51076b055c197bb01b663dba5644767e2ef58451","user":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":1222504,"name":"sonarqube","full_name":"SonarSource/sonarqube","owner":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SonarSource/sonarqube","description":"Put your technical debt under control","fork":false,"url":"https://api.github.com/repos/SonarSource/sonarqube","forks_url":"https://api.github.com/repos/SonarSource/sonarqube/forks","keys_url":"https://api.github.com/repos/SonarSource/sonarqube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonarqube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonarqube/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonarqube/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonarqube/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonarqube/events","assignees_url":"https://api.github.com/repos/SonarSource/sonarqube/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonarqube/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonarqube/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonarqube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonarqube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonarqube/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonarqube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonarqube/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonarqube/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonarqube/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonarqube/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonarqube/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonarqube/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonarqube/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonarqube/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonarqube/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonarqube/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonarqube/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonarqube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonarqube/merges","archive_url":"https://api.github.com/repos/SonarSource/sonarqube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonarqube/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonarqube/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonarqube/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonarqube/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonarqube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonarqube/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonarqube/releases{/id}","created_at":"2011-01-05T11:05:17Z","updated_at":"2015-05-19T01:09:30Z","pushed_at":"2015-05-19T09:16:18Z","git_url":"git://github.com/SonarSource/sonarqube.git","ssh_url":"git@github.com:SonarSource/sonarqube.git","clone_url":"https://github.com/SonarSource/sonarqube.git","svn_url":"https://github.com/SonarSource/sonarqube","homepage":"http://www.sonarqube.org","size":670200,"stargazers_count":610,"watchers_count":610,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":334,"mirror_url":null,"open_issues_count":10,"forks":334,"open_issues":10,"watchers":610,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonarqube/pulls/312"},"html":{"href":"https://github.com/SonarSource/sonarqube/pull/312"},"issue":{"href":"https://api.github.com/repos/SonarSource/sonarqube/issues/312"},"comments":{"href":"https://api.github.com/repos/SonarSource/sonarqube/issues/312/comments"},"review_comments":{"href":"https://api.github.com/repos/SonarSource/sonarqube/pulls/312/comments"},"review_comment":{"href":"https://api.github.com/repos/SonarSource/sonarqube/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SonarSource/sonarqube/pulls/312/commits"},"statuses":{"href":"https://api.github.com/repos/SonarSource/sonarqube/statuses/305a34c506f68044291961aa7ad7181112448578"}}}}