diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-10-06 20:00:51 +0200 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-10-07 16:34:58 +0200 |
commit | 328ca8c47054a6d1d284bc8e16b9b0600a137916 (patch) | |
tree | 9002017b3fe8871d33fb784a96555ef81bc9feb6 /doc/gitlab-basics/add-merge-request.md | |
parent | 9a13f885a9dc7b072d41160a6d3db965c9114b4b (diff) | |
download | gitlab-ce-328ca8c47054a6d1d284bc8e16b9b0600a137916.tar.gz |
Optimize the `award_user_list` helper spec
According to
https://gitlab.com/gitlab-org/gitlab-ce/issues/23034#note_16586657, each
test for this helper generated 1,833 queries.
Now we only generate stubbed records, and only as many as we need for
each test.
This also corrects a slight logic bug in the helper itself. When the
number of awards was greater than the limit (9 by default), _and_ the
current user was one of them, we actually included 10 names, including
"You", plus the remaining count. Now we return the correct number
regardless.
Diffstat (limited to 'doc/gitlab-basics/add-merge-request.md')
0 files changed, 0 insertions, 0 deletions