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

Increase performance of measure filters by improving management of user permissions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.4
    • Fix Version/s: None
    • Component/s: Measures
    • Labels:
      None

      Description

      Verication of user permissions - through the tables USER_ROLES and GROUP_ROLES - should be moved from the Ruby post-processing step to the initial SQL request.

      See the join on group_roles in the following example :

      SELECT s.id, s.project_id, s.root_project_id, p.long_name
      FROM snapshots s
      INNER JOIN projects p ON s.project_id=p.id
      INNER JOIN group_roles gr ON gr.resource_id = s.root_project_id and gr.group_id is null and gr.role='user'
      WHERE  s.status='P' AND s.islast=true AND p.copy_resource_id IS NULL  AND s.qualifier IN  ('TRK')
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              simon.brandhof Simon Brandhof (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: