Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9584

Add root project key to response of api/components/search

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M1, 6.6
    • Component/s: Web API
    • Labels:

      Description

      Add a new field with the root project key in the response of api/components/search,
      so that the components in the result can be easily associated with the SonarQube project to which they belong.

        "components": [
          {
            "qualifier": "BRC",
            "name": "level3",
            "project": "com.example.multilevel:root",
            "key": "com.example.multilevel:level3",
            "id": "AV1fMvGxjaqJ9eBSrVAu",
            "organization": "default-organization"
          },
          {
            "qualifier": "TRK",
            "name": "root",
            "project": "com.example.multilevel:root",
            "key": "com.example.multilevel:root",
            "id": "AV1fMvGvjaqJ9eBSrVAn",
            "organization": "default-organization"
          },
          // ...
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.henry Julien Henry
              Reporter:
              janos.gyerik Janos Gyerik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: