SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-1966

Dashboard metrics for aggregation project are different from Sonargraph Standalone Dashboard

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: SONARGRAPH-3.0.3
    • Fix Version/s: SONARGRAPH-3.0.4
    • Component/s: Sonargraph
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The number of cycle group warnings displayed on the architecture dashbox might be different from the number reported by Sonargraph Architect as cylce groups of logical architecture elements (e.g. between Layers, Layer Groups, etc.) are not taken into account.

        Activity

        Hide
        Ingmar Kellner added a comment -

        Currently only build unit metrics are used and aggregated for the overall dashboard.
        An additional metric should be used to store the aggregated number cycle group warnings.
        Artifacts that need to be added / changed:

        • New metric class
        • Sensor: Must retrieve the correct value from the report for the aggregating project.
        • AlertDecorator: Add threshold for metric
        • sonargraph_architecture_widget.html.erb: Dependend on the existence of the metric, display a matching label, e.g. "Cylce group warnings (all)" instead of "Cylce group warnings (physical only)"
        Show
        Ingmar Kellner added a comment - Currently only build unit metrics are used and aggregated for the overall dashboard. An additional metric should be used to store the aggregated number cycle group warnings. Artifacts that need to be added / changed: New metric class Sensor: Must retrieve the correct value from the report for the aggregating project. AlertDecorator: Add threshold for metric sonargraph_architecture_widget.html.erb: Dependend on the existence of the metric, display a matching label, e.g. "Cylce group warnings (all)" instead of "Cylce group warnings (physical only)"
        Hide
        Ingmar Kellner added a comment -

        Overall system metrics that cannot simply be aggregated via the child modules are now persisted in hidden metrics.
        The decorator executing for the parent module reads these metrics and stores the values in the metrics displayed to the end user.
        Now also warnings related to logical architecture elements are taken into account and the numbers match exactly those displayed by the standalone Sonargraph product.

        Show
        Ingmar Kellner added a comment - Overall system metrics that cannot simply be aggregated via the child modules are now persisted in hidden metrics. The decorator executing for the parent module reads these metrics and stores the values in the metrics displayed to the end user. Now also warnings related to logical architecture elements are taken into account and the numbers match exactly those displayed by the standalone Sonargraph product.

          People

          • Assignee:
            Ingmar Kellner
            Reporter:
            Ingmar Kellner
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: