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

Hide disabled metrics when searching for metrics

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Measures, Web API
    • Labels:

      Description

      When creating a custom graph on a project activity page, it is possible to search for disabled metrics. It shouldn't be possible.

      Solution

      One of this technical solution

      • api/metrics/search do not return disabled metrics (preferred solution)
      • api/metrics/search mark as hidden disabled metrics. Cons: Mix of 2 different things: status and visibility. Moreover, if it is enabled again, how to make the difference between a hidden and a disabled metric
      • api/metrics/search returns the status (ex: enabled: true)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              teryk.bellahsene Teryk Bellahsene
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: