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

Ability to grant an 'edit' permission to some users/groups on each quality profile

    XMLWordPrintable

    Details

      Description

      Use case

      Currently only administrator is allowed to edit quality profiles. I would like to allow some users to edit their own profiles.
      For each quality profile you should provide an admin interface allowing to configure what group/user is allowed to edit the profile.

      Web Services

      Create new web services

      • api/qualityprofiles/add_user, having login, qualityProfile, language and organization parameters
      • api/qualityprofiles/remove_user, having login, qualityProfile, language and organization parameters
      • api/qualityprofiles/add_group, having group, qualityProfile, language and organization parameters
      • api/qualityprofiles/remove_group, having group, qualityProfile, language and organization parameters
      • api/qualityprofiles/search_users
        • q : Limit search to user logins
        • selected
        • qualityProfile : quality profile name
        • language : Language key
        • organization : Organization key
      • api/qualityprofiles/search_groups
        • q : Limit search to group names
        • selected
        • qualityProfile : quality profile name
        • language : Language key
        • organization : Organization key

      Update existing web services

      • api/qualityprofiles/search, return the available actions
        {
          "actions": {
            "create": false
          },
          "profiles": [
            {
              "key": "AVyxQJTfFpfr6sfa6FFV",
              "actions": {
                "edit": true,
                "setAsDefault": false,
                "copy": false
              }
            }
          ]
        }
        
      • api/rules/app, remove qualityprofiles as it isn't used anymore

      Purge

      The permissions should be purged when :

      • deleting a user
      • removing an organization member
      • deleting a group
      • deleting a quality profile
      • deleting an organization

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stas.vilchik Stas Vilchik (Inactive)
              Reporter:
              julien.henry Julien Henry
              Votes:
              49 Vote for this issue
              Watchers:
              46 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: