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

Execute blame only on updated files

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2
    • Component/s: Compute Engine, Scanner, Scm
    • Labels:
      None

      Description

      • create the revision column in the file_source db
      • fill the commit column during an analysis
      • manage partial report of SCM from batch – search the missing SCM information in DB

      During the current sprint to remove persistence from batch side, we have temporary disabled the feature to only send SCM data of updated files to the compute report, we're sending all SCM data, even if no files have been updated.

      Technical details :

      • In /batch/project WS, query DB to know if a blame is missing on a file (ProjectRepositoryLoader#addFileData)
      • In the compute engine, load SCM from DB when no SCM exists in the report (source was not updated)
        • => this is important in order to properly compute metrics like "coverage on new code" or "technical debt ratio on new code"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: