• Sean McGivern's avatar
    Only do complicated confidentiality checks when necessary · 42ccb598
    Sean McGivern authored
    When we are filtering by a single project, and the current user has access to
    see confidential issues on that project, we don't need to filter by
    confidentiality at all - just as if the user were an admin.
    
    The filter by confidentiality often picks a non-optimal query plan: for
    instance, AND-ing the results of all issues in the project (a relatively small
    set), and all issues in the states requested (a huge set), rather than just
    starting small and winnowing further.
    42ccb598
issues_finder.rb 1.85 KB