summaryrefslogtreecommitdiff
path: root/spec/features/global_search_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use limit for search count queriessearch-100Jan Provaznik2018-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | Search query is especially slow if a user searches a generic string which matches many records, in such case search can take tens of seconds or time out. To speed up the search query, we search only for first 1000 records, if there is >1000 matching records we just display "1000+" instead of precise total count supposing that with such amount the exact count is not so important for the user. Because for issues even limited search was not fast enough, 2-phase approach is used for issues: first we use simpler/faster query to get all public issues, if this exceeds the limit, we just return the limit. If the amount of matching results is lower than limit, we re-run more complex search query (which includes also confidential issues). Re-running the complex query should be fast enough in such case because the amount of matching issues is lower than limit. Because exact total_count is now limited, this patch also switches to to "prev/next" pagination. Related #40540
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-221-1/+1
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-1/+1
|
* Remove superfluous type defs in specsKeifer Furzland2017-07-271-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Change gitlab_sign_in to sign_in where possibleRobert Speicher2017-06-291-1/+1
|
* Change `login_with` uses to `gitlab_sign_in`Robert Speicher2017-06-191-1/+1
| | | | Change single `login_via` use to `gitlab_sign_in_via`
* Use `:empty_project` where possible in top-level feature specsrs-empty-project-featuresRobert Speicher2017-04-201-1/+1
|
* Fix broken commits search24255-search-fixValery Sizov2016-11-081-0/+28