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

Do no query DB to retrieve Component of Project when loading periods

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 7.4
    • Component/s: Compute Engine
    • Labels:

      Description

      Periods are loaded in LoadPeriodsStep.

      This step identifies that no period need to be loaded based on the fact the project under analysis has no row in table PROJECT (and does a SQL request to find out so):
      1. this is now a false test since project are provisioned in WS
      2. the information that this is a first analysis is available in AnalysisMetadataHolder#isFirstAnalysis
      3. the id of the project in DB is required to load periods but it shouldn't be taken from a specific SQL query but rather from the SNAPSHOT retrieved to compute AnalysisMetadataHolder#isFirstAnalysis

        Attachments

          Activity

            People

            Assignee:
            sebastien.lesaint Sebastien Lesaint
            Reporter:
            sebastien.lesaint Sebastien Lesaint
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: