]> source.dussan.org Git - sonarqube.git/commitdiff
Add project key and sub project key in /api/components/app WS
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 19 Jun 2014 07:57:21 +0000 (09:57 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 19 Jun 2014 07:57:29 +0000 (09:57 +0200)
20 files changed:
sonar-server/src/main/java/org/sonar/server/component/ws/ComponentAppAction.java
sonar-server/src/main/resources/org/sonar/server/component/ws/components-example-app.json
sonar-server/src/test/java/org/sonar/server/component/ws/ComponentAppActionTest.java
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_extension.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_extension_having_permission.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_issues_measures.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_issues_measures_when_period_is_set.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_manual_rules.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_measures.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_measures_when_period_is_set.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_periods.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_rules.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_rules_when_period_is_set.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_severities.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_severities_when_period_is_set.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_sub_project_equals_to_project.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_tabs.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_with_tests_measure.json
sonar-server/src/test/resources/org/sonar/server/component/ws/ComponentAppActionTest/app_without_sub_project.json

index a024c13319d4766c8abe6a957021d0f9e30518f8..0145e00c71f9305e76d71afef239c07e6908245b 100644 (file)
@@ -173,10 +173,12 @@ public class ComponentAppAction implements RequestHandler {
     ComponentDto subProject = (ComponentDto) nullableComponentById(component.subProjectId(), session);
     ComponentDto project = (ComponentDto) componentById(component.projectId(), session);
 
-    // Do not display sub project long name if sub project and project are the same
-    boolean displaySubProjectLongName = subProject != null && !subProject.getId().equals(project.getId());
+    // Do not display sub project if sub project and project are the same
+    boolean displaySubProject = subProject != null && !subProject.getId().equals(project.getId());
 
-    json.prop("subProjectName", displaySubProjectLongName ? subProject.longName() : null);
+    json.prop("subProject", displaySubProject ? subProject.key() : null);
+    json.prop("subProjectName", displaySubProject ? subProject.longName() : null);
+    json.prop("project", project.key());
     json.prop("projectName", project.longName());
 
     json.prop("fav", isFavourite);
index 11e05d39b7a503f6c906902fc48f39ef3b95871b..2d7477b7b3cf9f805fc4623cf2f07bbbf1ff0b30 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": true,
   "canMarkAsFavourite": true,
index 526cf38ad11b7a4afe0a69fc26f9c0743feec6c9..b57ad1616d57f2572ae1dffa40f478432102c1a9 100644 (file)
@@ -81,7 +81,7 @@ import static org.mockito.Mockito.*;
 @RunWith(MockitoJUnitRunner.class)
 public class ComponentAppActionTest {
 
-  static final String PROJECT_KEY = "org.codehaus.sonar:sonar-plugin-api:api";
+  static final String SUB_PROJECT_KEY = "org.codehaus.sonar:sonar-plugin-api";
   static final String COMPONENT_KEY = "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/Plugin.java";
 
   @Mock
@@ -142,13 +142,13 @@ public class ComponentAppActionTest {
 
   @Test
   public void app() throws Exception {
-    MockUserSession.set().setLogin("john").addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().setLogin("john").addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
 
     ComponentDto file = new ComponentDto().setId(10L).setQualifier("FIL").setKey(COMPONENT_KEY).setName("Plugin.java")
       .setPath("src/main/java/org/sonar/api/Plugin.java").setSubProjectId(5L).setProjectId(1L);
     when(componentDao.getNullableByKey(session, COMPONENT_KEY)).thenReturn(file);
-    when(componentDao.getById(5L, session)).thenReturn(new ComponentDto().setId(5L).setLongName("SonarQube :: Plugin API"));
-    when(componentDao.getById(1L, session)).thenReturn(new ComponentDto().setId(1L).setLongName("SonarQube"));
+    when(componentDao.getById(5L, session)).thenReturn(new ComponentDto().setId(5L).setLongName("SonarQube :: Plugin API").setKey(SUB_PROJECT_KEY));
+    when(componentDao.getById(1L, session)).thenReturn(new ComponentDto().setId(1L).setLongName("SonarQube").setKey("org.codehaus.sonar:sonar"));
     when(propertiesDao.selectByQuery(any(PropertyQuery.class), eq(session))).thenReturn(newArrayList(new PropertyDto()));
 
     WsTester.TestRequest request = tester.newGetRequest("api/components", "app").setParam("key", COMPONENT_KEY);
@@ -162,7 +162,7 @@ public class ComponentAppActionTest {
 
     ComponentDto file = new ComponentDto().setId(1L).setQualifier("TRK").setKey(componentKey).setName("SonarQube").setProjectId(1L);
     when(componentDao.getNullableByKey(session, componentKey)).thenReturn(file);
-    when(componentDao.getById(1L, session)).thenReturn(new ComponentDto().setId(1L).setLongName("SonarQube"));
+    when(componentDao.getById(1L, session)).thenReturn(new ComponentDto().setId(1L).setLongName("SonarQube").setKey("org.codehaus.sonar:sonar"));
     when(propertiesDao.selectByQuery(any(PropertyQuery.class), eq(session))).thenReturn(newArrayList(new PropertyDto()));
 
     WsTester.TestRequest request = tester.newGetRequest("api/components", "app").setParam("key", componentKey);
@@ -171,12 +171,12 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_sub_project_equals_to_project() throws Exception {
-    MockUserSession.set().setLogin("john").addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().setLogin("john").addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
 
     ComponentDto file = new ComponentDto().setId(10L).setQualifier("FIL").setKey(COMPONENT_KEY).setName("Plugin.java")
       .setPath("src/main/java/org/sonar/api/Plugin.java").setSubProjectId(1L).setProjectId(1L);
     when(componentDao.getNullableByKey(session, COMPONENT_KEY)).thenReturn(file);
-    when(componentDao.getById(1L, session)).thenReturn(new ComponentDto().setId(1L).setLongName("SonarQube"));
+    when(componentDao.getById(1L, session)).thenReturn(new ComponentDto().setId(1L).setLongName("SonarQube").setKey("org.codehaus.sonar:sonar"));
     when(propertiesDao.selectByQuery(any(PropertyQuery.class), eq(session))).thenReturn(newArrayList(new PropertyDto()));
 
     WsTester.TestRequest request = tester.newGetRequest("api/components", "app").setParam("key", COMPONENT_KEY);
@@ -185,7 +185,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_tabs() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
     addComponent();
 
     addMeasure(CoreMetrics.COVERAGE_KEY, 1.0);
@@ -198,7 +198,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_measures() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
     addComponent();
 
     addMeasure(CoreMetrics.NCLOC_KEY, 200);
@@ -218,7 +218,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_measures_when_period_is_set() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
     addComponent();
     addPeriod();
 
@@ -239,7 +239,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_issues_measures() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
     addComponent();
 
     Multiset<String> severities = LinkedHashMultiset.create();
@@ -267,7 +267,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_issues_measures_when_period_is_set() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
     addComponent();
     addPeriod();
 
@@ -298,13 +298,13 @@ public class ComponentAppActionTest {
   @Test
   public void app_with_tests_measure() throws Exception {
     String componentKey = "org.codehaus.sonar:sonar-server:src/test/java/org/sonar/server/issue/PlanActionTest.java";
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, componentKey);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, componentKey);
 
     ComponentDto file = new ComponentDto().setId(10L).setQualifier("UTS").setKey(componentKey).setName("PlanActionTest.java")
       .setPath("src/test/java/org/sonar/server/issue/PlanActionTest.java").setSubProjectId(5L).setProjectId(1L);
     when(componentDao.getNullableByKey(session, componentKey)).thenReturn(file);
-    when(componentDao.getById(5L, session)).thenReturn(new ComponentDto().setId(5L).setLongName("SonarQube :: Plugin API"));
-    when(componentDao.getById(1L, session)).thenReturn(new ComponentDto().setId(1L).setLongName("SonarQube"));
+    when(componentDao.getById(5L, session)).thenReturn(new ComponentDto().setId(5L).setLongName("SonarQube :: Plugin API").setKey(SUB_PROJECT_KEY));
+    when(componentDao.getById(1L, session)).thenReturn(new ComponentDto().setId(1L).setLongName("SonarQube").setKey("org.codehaus.sonar:sonar"));
 
     addMeasure(CoreMetrics.TESTS_KEY, 10);
 
@@ -317,7 +317,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_periods() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
 
     addComponent();
 
@@ -332,7 +332,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_severities() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
 
     addComponent();
 
@@ -347,7 +347,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_severities_when_period_is_set() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
     addComponent();
     addPeriod();
 
@@ -362,7 +362,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_rules() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
 
     addComponent();
     when(issueService.findRulesByComponent(COMPONENT_KEY, null, session)).thenReturn(
@@ -375,7 +375,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_rules_when_period_is_set() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
 
     addComponent();
 
@@ -395,7 +395,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_extension() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
     addComponent();
 
     when(views.getPages(anyString(), anyString(), anyString(), anyString(), any(String[].class))).thenReturn(
@@ -408,7 +408,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_extension_having_permission() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
     addComponent();
 
     when(views.getPages(anyString(), anyString(), anyString(), anyString(), any(String[].class))).thenReturn(
@@ -420,7 +420,7 @@ public class ComponentAppActionTest {
 
   @Test
   public void app_with_manual_rules() throws Exception {
-    MockUserSession.set().addComponentPermission(UserRole.USER, PROJECT_KEY, COMPONENT_KEY);
+    MockUserSession.set().addComponentPermission(UserRole.USER, SUB_PROJECT_KEY, COMPONENT_KEY);
     addComponent();
 
     Result<Rule> result = mock(Result.class);
@@ -438,8 +438,8 @@ public class ComponentAppActionTest {
     ComponentDto file = new ComponentDto().setId(10L).setQualifier("FIL").setKey(COMPONENT_KEY).setName("Plugin.java")
       .setPath("src/main/java/org/sonar/api/Plugin.java").setSubProjectId(5L).setProjectId(1L);
     when(componentDao.getNullableByKey(session, COMPONENT_KEY)).thenReturn(file);
-    when(componentDao.getById(5L, session)).thenReturn(new ComponentDto().setId(5L).setLongName("SonarQube :: Plugin API"));
-    when(componentDao.getById(1L, session)).thenReturn(new ComponentDto().setId(1L).setLongName("SonarQube"));
+    when(componentDao.getById(5L, session)).thenReturn(new ComponentDto().setId(5L).setLongName("SonarQube :: Plugin API").setKey(SUB_PROJECT_KEY));
+    when(componentDao.getById(1L, session)).thenReturn(new ComponentDto().setId(1L).setLongName("SonarQube").setKey("org.codehaus.sonar:sonar"));
   }
 
   private void addPeriod(){
index 30715cd97d28a16d656959e5f137cbdadf8ab7a6..0bc7b8dda36d3f752298bbe01b7dcb418144f321 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": true,
   "canMarkAsFavourite": true,
index 015c2e99a4b89e3c494e2bd4eb0052182056e03f..e91a1bb424c0c69e8e62f7c3a32c26637e78a6c6 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index e74c50f7e01bd1374a99f3916e5d411afde09a44..c2ea499f5868db28f3245d57961b92ef80acea68 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index 5d645e3c4c69b427cf56d3d09737f4919a660117..cbc1c3f8fe9d90c9f23e393f0eec4b6f3ad08e92 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index 31da0b9b1dcb973029e69604767cc564237db680..ade74eae2dd1d0fd5e3a08837d587b2afb85f55f 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index 60a000a0a43c2c4af22d0165de01a5b3ebac2834..f75d151934651fe3da216bfac2a2075bc53b6895 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index efa46c28829dc495650bc959bb474aad181d9da6..83d040a36829102cf40ee27284920f638148bac8 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index cc34de25f9d0c0db6bd68a91c4c3aa8f1218b516..60e51356b2c278ae3f49af6fbe1a9c3580624b1c 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index ce54c1e87ce195195154ae3b19357f63bccf33f0..474d13fb1ecf1cfbd02678c67a708fd67552678d 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index d9172f38383b0a312cbcc96da1304126df035f64..e745fe5b119b960e7086d39b12119e7e5e856bf2 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index ad8444c8ef24aaf0baaa552f1377a0d6c7b6b534..65ac58302ffd1288523ca366069543325e2bce70 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index 807a16712579aa5e7514406f0f6d57d5553558d9..b490b411ef66d250e7bac422673081f08edf6038 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index 53401307052681d5e3da5df0b91389ee32b3e5de..d98a9f3634d064bce199e5f41fba63a5659d82ba 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index 2eaadf8866394322cf9b50ab4ba114caa9b9f520..c535c2ac6d1e867c59dcc483130ccb28572ba1a3 100644 (file)
@@ -3,6 +3,7 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "project" : "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": true,
   "canMarkAsFavourite": true,
index 9b3f2515f80a1ef6498fe46c075fa342c5e562a7..3009fb3d416542d8a043a71e49fce858e28f9ef7 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/main/java/org/sonar/api/Plugin.java",
   "name": "Plugin.java",
   "q": "FIL",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index 385d2ba2321532c8aa134f5464205e2e1c76b5c7..70ed990402df386e8525a5bc4471f17e36597137 100644 (file)
@@ -3,7 +3,9 @@
   "path": "src/test/java/org/sonar/server/issue/PlanActionTest.java",
   "name": "PlanActionTest.java",
   "q": "UTS",
+  "subProject": "org.codehaus.sonar:sonar-plugin-api",
   "subProjectName": "SonarQube :: Plugin API",
+  "project": "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": false,
   "canMarkAsFavourite": false,
index 709353d023b14c7c6138a6b3c40f87cc09b0b368..0449355dfa13882673c59460c15450c3b1d25163 100644 (file)
@@ -2,6 +2,7 @@
   "key": "org.codehaus.sonar:sonar",
   "name": "SonarQube",
   "q": "TRK",
+  "project" : "org.codehaus.sonar:sonar",
   "projectName": "SonarQube",
   "fav": true,
   "canMarkAsFavourite": true,