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

Update status of quality gate on issue changes

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0
    • Component/s: Quality Gate
    • Labels:

      Description

      When an issue change causes project level measure updates, we should recalculate the projects current quality gate.

      We should always recalculate all conditions (even if their measures have not been updated), because the quality gate might have changed since the latest calculation. Quality gate changes could be:

      • Changes of conditions
      • Adding/removal of conditions
      • Switching to another quality gate

      The quality gate recalculation should insert or update (in latest_measures, not project_measures):

      • alert_status measure
      • quality_gate_details measure

      (side note: the gate_status and gate_text columns do not exist in latest_measures and hence do not need to be updated)

      The webservice api/qualitygates/project_status has to be updated to read latest_measures instead of project_measures

      The webhooks will be called, if the quality gate color changed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                simon.brandhof Simon Brandhof
                Reporter:
                daniel.schwarz Daniel Schwarz (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: