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

New Code Period should be set separately for a Project and for the Main Branch

    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

      With MMF-1579, we want to set a default New Code Period for a project which applies to all branches and give an option to override it for any branch, including the main branch.

      Due to technical constraints storing this setting, currently we don't allow users to set a specific New Code Period for the main branch. Instead, the setting for the Project always applies for the main branch.

      Solution

      • Create new table "new_code_period":
        CREATE TABLE "NEW_CODE_PERIOD" (
          "UUID" VARCHAR(40) NOT NULL,
          "PROJECT_UUID" VARCHAR(40) NOT NULL,
          "BRANCH_UUID" VARCHAR(40),
          "TYPE" VARCHAR(40),
          "VALUE" VARCHAR(40) 
          CONSTRAINT "PK_NEW_CODE_PERIOD" PRIMARY KEY ("UUID")
        ); 
        
      • Migrate column "MANUAL_BASELINE_ANALYSIS_UUID" from the table PROJECT_BRANCHES to the new table
      • "NEW_CODE_PERIOD" table will also contain project default settings, for project default settings it will set null value for "BRANCH_UUID" column
      • Define types for new code period: PREVIOUS_VERSION,  NUMBER_OF_DAYS, DATE, SPECIFIC_ANALYSIS

        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: