diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2018-02-15 19:33:35 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2018-02-22 18:55:36 +0100 |
commit | d2e43fbde60589c905aae9d2500c63355ba8fdc4 (patch) | |
tree | 139bda3bb65ab2de1768e34e7bbee52d5028e608 /app/assets/javascripts/filtered_search/dropdown_user.js | |
parent | dd52915dc605071eba17fb3876229d2db54481f6 (diff) | |
download | gitlab-ce-d2e43fbde60589c905aae9d2500c63355ba8fdc4.tar.gz |
Removed pagination from AutocompleteUsersFinder
The frontend code doesn't use this so there's no practical point in
supporting this. We also hardcode the limit to 20 so users can no longer
request their own limit, which could overload the database (depending on
any upper bounds perhaps enforced by Kaminari).
Diffstat (limited to 'app/assets/javascripts/filtered_search/dropdown_user.js')
-rw-r--r-- | app/assets/javascripts/filtered_search/dropdown_user.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/assets/javascripts/filtered_search/dropdown_user.js b/app/assets/javascripts/filtered_search/dropdown_user.js index 22421fc4868..d36f38a70b5 100644 --- a/app/assets/javascripts/filtered_search/dropdown_user.js +++ b/app/assets/javascripts/filtered_search/dropdown_user.js @@ -14,7 +14,6 @@ export default class DropdownUser extends FilteredSearchDropdown { endpoint: `${gon.relative_url_root || ''}/autocomplete/users.json`, searchKey: 'search', params: { - per_page: 20, active: true, group_id: this.getGroupId(), project_id: this.getProjectId(), |