diff options
author | Stan Hu <stanhu@gmail.com> | 2019-03-22 16:39:58 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-03-27 14:15:33 +0300 |
commit | c408be48ca3d6840076c6f16c7910411cdfca24c (patch) | |
tree | 0c4654b1dde29f6f368991695b173a7d95277729 /changelogs | |
parent | 0610bb091766d3bb935fc10898dd66bc6f76b1c5 (diff) |
Optimize /api/v4/projects endpoint for visibility level
Previously when a user requested a list of projects,
`Project#public_or_visible_to_user` would search all authorized projects
and public/internal projects as well. However, when a user requests a
specific `visibility_level` (e.g. private), that should reduce the
search space, and we shouldn't need to load public/internal projects.
Improves https://gitlab.com/gitlab-org/gitlab-ce/issues/59329
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/sh-optimize-projects-api.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-optimize-projects-api.yml b/changelogs/unreleased/sh-optimize-projects-api.yml new file mode 100644 index 00000000000..2f2459be77f --- /dev/null +++ b/changelogs/unreleased/sh-optimize-projects-api.yml @@ -0,0 +1,5 @@ +--- +title: Optimize /api/v4/projects endpoint for visibility level +merge_request: 26481 +author: +type: performance |