Name |
Last commit
|
Last update |
---|---|---|
.. | ||
api | ||
assets | ||
backup | ||
gitlab | ||
redcarpet/render | ||
support | ||
tasks | ||
email_validator.rb | ||
event_filter.rb | ||
extracts_path.rb | ||
file_size_validator.rb | ||
gt_one_coercion.rb | ||
static_model.rb | ||
unfold_form.rb |
BigW Consortium Gitlab
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>
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
api | Loading commit data... | |
assets | Loading commit data... | |
backup | Loading commit data... | |
gitlab | Loading commit data... | |
redcarpet/render | Loading commit data... | |
support | Loading commit data... | |
tasks | Loading commit data... | |
email_validator.rb | Loading commit data... | |
event_filter.rb | Loading commit data... | |
extracts_path.rb | Loading commit data... | |
file_size_validator.rb | Loading commit data... | |
gt_one_coercion.rb | Loading commit data... | |
static_model.rb | Loading commit data... | |
unfold_form.rb | Loading commit data... |