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

Add information about Default New Code Period to System Information File

    XMLWordPrintable

    Details

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

      Description

      MMF requirement: What is the Default New Code Period?
      To understand the default behavior on the instance and if there was a conscious choice to change it.

       

      How: To json-like structure in System Information File add following information within the Settings section:

      {
        "Settings": {
           ....
          "Default New Code Period": "PREVIOUS_VERSION" or "NUMBER_OF_DAYS:30",
        }
      }

      It should be in database under

      select type,value from new_code_periods where project_uuid is null 

      If there is no value returned by this query, the default value will be "Previous Version".

      If a New Period is defined, and together with a Type it has a value specified, the value will be concatenated in the format

      "Default New Code Period": "PERIOD_TYPE:PERIOD_VALUE"

       

        Attachments

          Activity

            People

            Assignee:
            belen.pruvost Belén Pruvost
            Reporter:
            lukasz.jarocki Łukasz Jarocki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: