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

Project count returned in api/system/info and send in telemetry is wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.7, 7.8, 7.9, 8.0, 8.1, 8.2
    • Fix Version/s: 8.3
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Description

      On a fresh SonarQube instance, when analysing only one project, the result of api/system/info contains :

      "Statistics": {
        "projectCount":2,
        "projectCountByLanguage":[
           {
              "language":"java",
              "count":1
           },
           {
              "language":"xml",
              "count":1
           }
        ]
      }
      

      As we can see, 2 projects are returned whereas only one project has been analysed.

      And when analysing more projects, the value returned by the WS is always twice the real value.

      This issue is also impacting the telemetry, as both this WS and the telemetry are using the same data.

      Technical details

      The data that is returning the number of project is generated by ProjectMeasuresIndex#searchTelemetryStatistics.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jacek.poreda Jacek Poreda
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: