summaryrefslogtreecommitdiff
path: root/lib/api/v3/projects.rb
Commit message (Collapse)AuthorAgeFilesLines
* Support search in APIJarka Kadlecová2018-02-061-1/+1
|
* Enable RuboCop Style/RegexpLiteralTakuya Noguchi2018-02-011-1/+1
|
* 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
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+2
|
* Merge branch '23079-remove-default-scope-in-sortable' into 'master'Douwe Maan2017-09-071-1/+1
|\ | | | | | | | | | | | | Removes default scope from sortable Closes #23079 See merge request !13558
| * Removes default scope from sortable23079-remove-default-scope-in-sortableTiago Botelho2017-09-071-1/+1
| |
* | change collapse to resolve and comments to discussionsAshley Dumaine2017-09-061-2/+2
| |
* | Add functionality to collapse outdated diff comments regardless of ↵Ashley Dumaine2017-09-061-3/+4
|/ | | | discussion resolution
* Cache the number of forks of a projectforks-count-cacheYorick Peterse2017-08-141-0/+2
| | | | | | | | | | | The number of forks of a project doesn't change very frequently and running a COUNT(*) every time this information is requested can be quite expensive. We also end up running such a COUNT(*) query at least twice on the homepage of a project. By caching this data and refreshing it when necessary we can reduce project homepage loading times by around 60 milliseconds (based on the timings of https://gitlab.com/gitlab-org/gitlab-ce).
* Filter archived project in API v3 only if param presentvanadium232017-06-211-1/+1
|
* Enable the Style/PreferredHashMethods coprc/enable-PreferredHashMethods-copRémy Coutable2017-06-021-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove some deprecated methodstc-improve-project-api-perfToon Claes2017-05-301-1/+1
| | | | | To avoid the use of slow queries, remove some deprecated methods and encourage the use of ProjectFinder to find projects.
* Enable the Style/TrailingCommaInArguments copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Support uploaders for personal snippets comments12910-uploader-pers-snippetJarka Kadlecova2017-05-021-1/+1
|
* ProjectsFinder should handle more optionsJacopo2017-04-061-1/+1
| | | | | | | | | | | | | | | | | | | Extended ProjectFinder in order to handle the following options: - current_user - which user use - project_ids_relation: int[] - project ids to use - params: - trending: boolean - non_public: boolean - starred: boolean - sort: string - visibility_level: int - tags: string[] - personal: boolean - search: string - non_archived: boolean GroupProjectsFinder now inherits from ProjectsFinder. Changed the code in order to use the new available options.
* Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable2017-03-161-1/+1
| | | | | | API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
* Update occurrences of MWBS to MWPSfix/mwbs-to-mwpsJames Lopez2017-03-011-25/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename column in the database Rename fields related to import/export feature Rename API endpoints Rename documentation links Rename the rest of occurrences in the code Replace the images that contain the words "build succeeds" and docs referencing to them Make sure pipeline is green and nothing is missing. updated doc images renamed only_allow_merge_if_build_succeeds in projects and fixed references more updates fix some spec failures fix rubocop offences fix v3 api spec fix MR specs fixed issues with partials fix MR spec fix alignment add missing v3 to v4 doc wip - refactor v3 endpoints fix specs fix a few typos fix project specs copy entities fully to V3 fix entity error more fixes fix failing specs fixed missing entities in V3 API remove comment updated code based on feedback typo fix spec
* Merge branch '6073_project_api' into 'master' Sean McGivern2017-02-281-1/+2
|\ | | | | | | | | | | | | API project create: Make name or path required Closes #6073 See merge request !9416
| * API project create: Make name or path requiredJarka Kadlecova2017-02-271-1/+2
| |
* | Backport API to V3Robert Schilling2017-02-281-0/+3
|/
* Enable Style/MultilineArrayBraceLayoutDouwe Maan2017-02-231-1/+2
|
* Enable Style/SpaceInsideBracketsDouwe Maan2017-02-231-1/+1
|
* Remove deprecated `upvotes` and `downvotes` from the notes APIRobert Schilling2017-02-221-2/+2
|
* Split V3 entities into a separate fileapi-remove-snippets-expires-atRobert Schilling2017-02-071-37/+37
|
* Remain V3 endpoint unchangedOswaldo Ferreira2017-01-301-0/+458