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

Fix null message in quality gate event messages when leak period is set on number of days

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 6.6
    • Fix Version/s: None
    • Component/s: Quality Gate, Web API
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      When the leak period is set on a number of days (for instance since 30 days), and a quality gate becomes red, the quality gate event message will contain null instead of over 30 days.

      This message is coming from api/project_analyses/search, for instance :

      { "key": "AWTXx3H_rFWWQMKkYyrD",
        "category": "QUALITY_GATE",
        "name": "Red (was Green)",
        "description": "Security Rating on New Code > 1 null, Reliability Rating on New Code > 1 null, Coverage on New Code > 80 null" }
      

      This error is due to the fact that the bundle messages 'over_x_days', 'over_x_days_detailed' have been removed when working on SONAR-8828 here.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: