Commit graph

18 commits

Author SHA1 Message Date
Clement Ho
c281fc670a Add .nav.nav-tabs to nav-links 2018-04-19 22:34:20 -05:00
Clement Ho
1c75a0e27c Add badge-pill to .badge in haml 2018-04-09 11:33:41 -05:00
Jan Provaznik
741caf93e1 Use limited count queries also for scoped searches 2018-03-05 13:25:56 +00:00
Jan Provaznik
090ca9c33e Use limit for search count queries
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
2018-01-23 22:33:42 +01:00
Valery Sizov
be9ffbafbb Create a separate helper to check if we show particular tab on a search page 2017-05-29 19:59:24 +03:00
Valery Sizov
1a424a9bc9 Explicitly test that guest is able to search through the wiki 2017-05-29 16:20:25 +03:00
Valery Sizov
893b1eb1d3 Fix: Wiki is not searchable with Guest permissions 2017-05-22 19:51:09 +03:00
Phil Hughes
28b8b92e84 Fixed alignment on some pages
Fixed pipelines tabs not showing arrows
2017-03-28 15:56:08 +01:00
Phil Hughes
598973c389 Fixed inner page tabs not being scrollable
Some inner page tabs where not scrollable like the top nav & this caused
them to break onto new lines mobile.

This pages include:

- dashboard/projects
- project -> merge_requests
- search
- project -> milestones
- project -> pipelines

Closes #18853
2017-03-28 14:58:51 +01:00
Semyon Pupkov
0dfccd995a Add active_when helper
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/24036
2017-02-15 14:29:48 +05:00
Kushal Pandya
fb3e365412 HAMLLint: Fix SpaceInsideHashAttributes offences 2016-12-31 11:58:36 +05:30
Phil Hughes
1c8d01b05a Removed category icons 2016-04-26 09:03:04 +01:00
Dmitriy Zaporozhets
3238b0bc9f
Replace nav-tabs with nav-links
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-01-13 17:13:36 +01:00
Dmitriy Zaporozhets
810c91fe35
Refactor search by commits message
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-11-02 16:39:24 +01:00
Jonathan Schoeffling
5a5069969c Add support for searching commit log messages
Include the log messages of recent commits in project-level search
results, providing functionality similar to 'git log --grep'.

Update repository model rspec tests to validate the output of
Repository#commits_with_log_matching.
2015-10-28 22:34:39 -04:00
Dmitriy Zaporozhets
dcdf214fd1
More compact search page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-08-27 00:22:36 +02:00
Valery Sizov
56527b63e8 Ability to search milestones 2015-08-24 13:59:01 +03:00
Dmitriy Zaporozhets
24037e7e63
Move search categories (projects, issues etc) below search field. Instead use sidebar for dashbaord nav
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-04-29 12:19:54 +03:00