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

Merge concept of "manual baseline" and New Code Period

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0
    • Component/s: None
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Currently we have those two concepts and the Manual Baseline, if set, overrides the New Code Period.

      The Manual Baseline should simply be a type of New Code Period (alongside other types such as "previous version", "number of days", etc.

      New Code Period

      • Stored as a setting with the key "sonar.leak.period", for a specific resource (project or branch key)
      • The value can be a date, version, "previous_version", ...

      Manual Baseline

      • If set, has precedence over the New Code Period
      • Stored in the table "project_branches" as the UUID of the analysis that should be used as the baseline for a project/branch.
      • Read/written through "api/project_analyses/set_baseline" and "api/project_analyses/get_baseline" (no UI)

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jacek.poreda Jacek Poreda
              Reporter:
              duarte.meneses Duarte Meneses
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: