gitlab-org--gitlab-foss/lib
Dmitriy Zaporozhets 9a4ef7e7eb
Search results libraries added
Gitlab::SearchResults and Gitlab::ProjectSearchResults are libraries we
are going to use to get search results based on query, enitity type and
pagination.

It will allow us to get only issues from project #23 where title or
description includes 'foo'.

Ex:

search_results = Gitlab::ProjectSearchResults.new(project.id, 'foo', 'issues')

search_results.objects => # [<Issues #23>, <Issues #34>]
search_results.issues_count => 2
search_results.total_count => 12 (it includes results from comments and
merge requests too)

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-08-26 23:32:41 +03:00
..
api Fix tests after #7526 2014-08-20 20:34:55 +02:00
assets move assets from lib directory to vendor 2012-05-29 17:56:48 +05:00
backup Backup wiki repo even if the main repo is empty 2014-05-08 22:50:48 +02:00
gitlab Search results libraries added 2014-08-26 23:32:41 +03:00
redcarpet/render Add feature spec. 2014-05-26 20:43:58 +02:00
support Merge pull request #7558 from bbodenmiller/patch-4 2014-08-23 23:50:09 +03:00
tasks Write authorized_keys in tmp/tests during tests 2014-08-26 11:33:26 +02:00
email_validator.rb Test for the apostrophe in the email 2014-06-11 13:36:30 +02:00
event_filter.rb Constants in Events looks good now 2013-02-13 15:48:16 +04:00
extracts_path.rb Improve code according to new gitlab_git 2014-02-04 14:46:15 +02:00
file_size_validator.rb Fully embrace Ruby 1.9 hash syntax 2012-08-10 18:25:15 -04:00
gt_one_coercion.rb diff unfold 2014-08-14 15:48:14 +04:00
static_model.rb Fixed styles, ProjectHook specs etc 2013-01-05 00:35:38 +02:00
unfold_form.rb diff unfold 2014-08-14 15:48:14 +04:00