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

Allow dismissing specific analysis message types by the user

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.5
    • Component/s: Web
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Description

      A user should be able to dismiss some analysis messages. Once he dismisses the message, the messages of the same kind should not be visible for that user in subsequent analyses for that project.
      When the user is not logged, the warnings will always be displayed.

      Technical details

      To do that we need to:

      • a "Dismiss permanently" link for "dismissable" analysis messages
      • modify /api/ce/analysis_status to return the information if the message can be dismissed by the user and this WS should also not return messages that were already dismissed by the user before:
        {
          "component": {
            "key": "sonarts",
            "name": "SonarTS",
            "warnings": [
              {
                "key": "abcd-efgh-ijkl",
                "message": "250 files detected during the last analysis. C++/C code cannot be analyzed with SonarQube Community edition. Please consider upgrading to the Developer edition to analyze this language.",
                "dismissable": true
              }
            ]
          }
        }
        
        
      • add a new WS for dismissing an analysis warning by the current user for a given project :
        • path : api/ce/dismiss_analysis_warning
        • parameters : component (key of the component) and warning (key of the warning)
        • permission : 'Browse' on the specified component

        Attachments

          Activity

            People

            Assignee:
            michal.duda Michal Duda (Inactive)
            Reporter:
            michal.duda Michal Duda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: