diff options
author | Sean McGivern <sean@gitlab.com> | 2017-06-20 18:38:14 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-06-30 12:33:44 +0300 |
commit | 42ccb5981a8425216f9d69372754c52510f0cade (patch) | |
tree | b26bb1a97d8e6c5eeece65d1c19dec226d899aac /spec/sidekiq | |
parent | 4a9ffb2376163ce6c81dcf09ad3601098cc7d23d (diff) |
Only do complicated confidentiality checks when necessary
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.
Diffstat (limited to 'spec/sidekiq')
0 files changed, 0 insertions, 0 deletions