BigW Consortium Gitlab
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. See merge request !6722
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
application_helper_spec.rb | Loading commit data... | |
auth_helper_spec.rb | Loading commit data... | |
blob_helper_spec.rb | Loading commit data... | |
broadcast_messages_helper_spec.rb | Loading commit data... | |
ci_status_helper_spec.rb | Loading commit data... | |
commits_helper_spec.rb | Loading commit data... | |
diff_helper_spec.rb | Loading commit data... | |
emails_helper_spec.rb | Loading commit data... | |
events_helper_spec.rb | Loading commit data... | |
form_helper_spec.rb | Loading commit data... | |
git_helper_spec.rb | Loading commit data... | |
gitlab_markdown_helper_spec.rb | Loading commit data... | |
gitlab_routing_helper_spec.rb | Loading commit data... | |
graph_helper_spec.rb | Loading commit data... | |
groups_helper_spec.rb | Loading commit data... | |
icons_helper_spec.rb | Loading commit data... | |
import_helper_spec.rb | Loading commit data... | |
issuables_helper_spec.rb | Loading commit data... | |
issues_helper_spec.rb | Loading commit data... | |
labels_helper_spec.rb | Loading commit data... | |
members_helper_spec.rb | Loading commit data... | |
merge_requests_helper_spec.rb | Loading commit data... | |
milestones_helper_spec.rb | Loading commit data... | |
notes_helper_spec.rb | Loading commit data... | |
notifications_helper_spec.rb | Loading commit data... | |
page_layout_helper_spec.rb | Loading commit data... | |
preferences_helper_spec.rb | Loading commit data... | |
projects_helper_spec.rb | Loading commit data... | |
runners_helper_spec.rb | Loading commit data... | |
search_helper_spec.rb | Loading commit data... | |
sidekiq_helper_spec.rb | Loading commit data... | |
submodule_helper_spec.rb | Loading commit data... | |
tab_helper_spec.rb | Loading commit data... | |
time_helper_spec.rb | Loading commit data... | |
tree_helper_spec.rb | Loading commit data... | |
visibility_level_helper_spec.rb | Loading commit data... |