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

Add WS api/projects/update_visibility

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4
    • Component/s: Web API
    • Labels:

      Description

      WS has the following parameters:

      • project: the project key
        • mandatory
      • visibility: private / public
        • mandatory

      This WS :

      1. changes the private flag of the specified component (which implies updating all the components of the tree)
      2. removes any permission to group AnyOne when switching to private and grants USER and BROWSE to all groups and users with at least one permission on the project
      3. removes any permission USER or BROWSE when switching to public
      4. updates the relevant indexes
      5. has no response

      This WS must fail:

      • if the specified key if not a root component (ie. a root or a view)
      • if there is any task in queue for the specified component (to avoid getting into inconsistent state) and documents this constraint in its description
      • when switching to private a project which has no permission at all on any group or user (because that would make the project invisible to anybody)

      This WS must not fail, but have no effect :

      • if the component already has the specified visibility

      This WS requires Project Administer permission.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              sebastien.lesaint Sebastien Lesaint
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: