Commit graph

17 commits

Author SHA1 Message Date
Alexis Reigel
27ac48c394
Apply suggestion to lib/api/search.rb 2019-03-15 21:03:49 +01:00
Alexis Reigel
fcf90d051b
un-dry the search api scope
due to the usage in EE this attempt to more DRYness is not worth it.
2019-03-14 18:39:54 +01:00
Alexis Reigel
b0981097c3
return 400 on users search and feature is disabled
as the params block is evaluated when loading the class and the db
connection is not available yet we can't use the feature toggle inside
that block.
2019-03-14 18:39:54 +01:00
Alexis Reigel
55629a2e4d
add feature flag for users search 2019-03-14 18:30:30 +01:00
Alexis Reigel
c36d98501b
extract helper for search scope api param 2019-03-14 18:30:29 +01:00
Alexis Reigel
0592233a1a
add users search to search api 2019-03-14 18:21:01 +01:00
Yorick Peterse
712148518b
Refactor API::Search for EE
This refactors API::Search so that Enterprise Edition can more easily
extend its functionality, without having to modify the file directly.
2019-03-04 17:44:57 +01:00
Jan Provaznik
58bfd73331 Optimized file search to work without limits
* removed 100 limit on file search results because we
  load all results anyway
* expensive processing (parsing match content, utf encoding)
  is done only for selected page in paginated output
2018-12-06 09:25:09 +01:00
Imre Farkas
b1e070bf49
Fix API::Namespaces to accept namepaces with dots
It also renames the API::PROJECT_ENDPOINT_REQUIREMENTS constant to
API::NAMESPACE_OR_PROJECT_REQUIREMENTS
2018-11-28 12:54:11 +01:00
gfyoung
3836d69119 Enable frozen string in lib/api and lib/backup
Partially addresses #47424.

Had to make changes to spec files because
stubbing methods on frozen objects is a mess
in RSpec and leads to failures:

https://github.com/rspec/rspec-mocks/issues/1190
2018-09-29 21:04:50 -07:00
Francisco Javier López
7350eb1fa8 Add ability to search wiki titles 2018-06-04 11:41:37 +00:00
Jan Provaznik
2370ff85fe Optional '/-/' delimiter for search API
'/-/' delimiter is used only in UI, in API we don't use it for
other endpoints. To align search endpoints with the rest of API
endpoints, this patch makes '/-/' optional for existing endpoints (to
keep backward compatibility).

Documentation is updated to prefer paths without '/-/'.
2018-03-19 20:02:15 +01:00
Jarka Kadlecová
b0b4ae1875 API - Include project in commits&blobs search results 2018-02-14 09:00:26 +01:00
Jarka Kadlecová
68ff219c4e API - fix searching in group/project specified by path 2018-02-09 18:51:06 +01:00
Jarka Kadlecová
86e98c832a Small code/doc changes 2018-02-07 14:20:18 +01:00
Jarka Kadlecová
1b2400b529 Return only limited pagination headers for search API endpoints 2018-02-06 17:58:18 +01:00
Jarka Kadlecová
7381944565 Support search in API 2018-02-06 16:02:02 +01:00