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

Changelog are not group by actions on built-in profile updates

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M3, 6.6
    • Component/s: Quality Profile, Web
    • Labels:

      Description

      When built-in profiles are updated and contains some rules that are updated, removed, added, the rules are not group by action.

      As a technical note, this issue is not a date problem returned by the WS api/qualityprofiles/changelog, as the date events related to the built-in update have the exact same date.

      {
          "events": [
              {
                  "date": "2017-06-29T09:54:56+0200",
                  "action": "DEACTIVATED",
                  "ruleKey": "foo:ToBeDeactivatedRule",
                  "ruleName": "ToBeDeactivatedRule",
                  "params": { }
              },
              {
                  "date": "2017-06-29T09:54:56+0200",
                  "action": "UPDATED",
                  "ruleKey": "foo:RuleWithAddedParameter",
                  "ruleName": "RuleWithAddedParameter",
                  "params": {
                      "severity": "MAJOR",
                      "added": "10"
                  }
              },
              {
                  "date": "2017-06-29T09:54:56+0200",
                  "action": "UPDATED",
                  "ruleKey": "foo:RuleWithChangedParameter",
                  "ruleName": "RuleWithChangedParameter",
                  "params": {
                      "severity": "MAJOR",
                      "toBeChanged": "20"
                  }
              },
              {
                  "date": "2017-06-29T09:54:56+0200",
                  "action": "ACTIVATED",
                  "ruleKey": "foo:NewRule",
                  "ruleName": "NewRule",
                  "params": {
                      "severity": "MAJOR"
                  }
              },
              {
                  "date": "2017-06-29T09:54:56+0200",
                  "action": "UPDATED",
                  "ruleKey": "foo:ChangedRule",
                  "ruleName": "ChangedRule",
                  "params": {
                      "severity": "MINOR"
                  }
              },
              {
                  "date": "2017-06-29T09:54:34+0200",
                  "action": "ACTIVATED",
                  "ruleKey": "foo:RuleWithAddedParameter",
                  "ruleName": "RuleWithAddedParameter",
                  "params": {
                      "severity": "MAJOR"
                  }
              }
         ...
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stas.vilchik Stas Vilchik (Inactive)
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: