summaryrefslogtreecommitdiff
path: root/lib/api/issues.rb
Commit message (Collapse)AuthorAgeFilesLines
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+1
|
* API: get participants from merge_requests & issuesBrent Greeff2018-01-051-0/+13
|
* Employ declared_params in finder methods for MR and Issue API listsMark Fletcher2017-12-201-1/+1
| | | | - Ensure that unwanted params are no passed to actual finder classes
* Merge branch 'issue_30663' into 'security-10-2'Sean McGivern2017-12-081-0/+2
| | | | | | | | | Prevent creating issues through API without having permissions See merge request gitlab/gitlabhq!2225 (cherry picked from commit c298bbaa88883343dc9cbbb6abec0808fb3b546c) 915b97c5 Prevent creating issues through API without having permissions
* Create issue and merge request destroy servicesGeorge Andrinopoulos2017-11-251-1/+3
|
* Fail when issuable_meta_data is called on an unlimited collectionfix-issues-api-list-performanceSean McGivern2017-11-071-6/+6
| | | | | | | | | | | | | | This method can be called with an array, or a relation: 1. Arrays always have a limited amount of values, so that's fine. 2. If the relation does not have a limit value applied, then we will load every single object in that collection, and prevent N+1 queries for the metadata for that. But that's wrong, because we should never call this without an explicit limit set. So we raise in that case, and this commit will see which specs fail. The only failing specs here were the issues API specs, and the specs for IssuableMetadata itself, and both have been addressed.
* Create system notes for MR too, improve doc + clean up codeJarka Kadlecova2017-09-141-1/+1
|
* Support discussion lock in the APIJarka Kadlecova2017-09-141-1/+2
|
* Add my_reaction_emoji param to /issues APIHiroyuki Sato2017-09-051-0/+1
|
* API: Use defined project requirementsrs-api-use-project-requirementsRobert Schilling2017-08-311-2/+2
|
* Merge branch '28453-add-time-estimate-time-spent-to-api-issue-output' into ↵Robert Speicher2017-08-301-3/+25
|\ | | | | | | | | | | | | | | | | 'master' Add time stats to Issue and Merge Request API Closes #28453 See merge request !13335
| * Add time stats to issue and merge request API end pointsTravis Miller2017-08-291-11/+17
| |
| * Resolve new N+1 by adding preloads and metadata to issues end pointsTravis Miller2017-08-291-3/+19
| |
* | Conditionally destroy a ressourceRobert Schilling2017-08-281-3/+1
| |
* | API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling2017-08-281-0/+2
|/
* Modify/add some forgotten issues API documentationtc-api-root-merge-requestsToon Claes2017-07-281-2/+2
| | | | Should have been part of !13004.
* Merge branch 'tc-issue-api-assignee' into 'master'Sean McGivern2017-07-271-1/+7
|\ | | | | | | | | | | | | Add author_id & assignee_id param to /issues API Closes #29430 See merge request !13004
| * Allow query param scope for /issues API endpointtc-issue-api-assigneeToon Claes2017-07-241-4/+5
| |
| * Add author_id & assignee_id param to /issues APIToon Claes2017-07-241-0/+5
| | | | | | | | Allow issues filtering on `author_id` and `assignee_id`.
* | Resolve "More RESTful API: include resource URLs in responses"Oswaldo Ferreira2017-07-251-1/+1
|/
* Update grape gemdz-update-grapeDmitriy Zaporozhets2017-07-201-0/+1
| | | | | | | | New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* refactor code based on feedbackJames Lopez2017-07-061-2/+1
|
* add user agent details API endpoints to issues and snippetsJames Lopez2017-07-061-0/+17
|
* add since and until params to issuablesKyle Bishop2017-06-181-0/+2
|
* Backport of multiple_assignees_feature [ci skip]Valery Sizov2017-05-041-2/+7
|
* Merge branch '26437-closed-by' into 'master' Rémy Coutable2017-04-261-0/+15
|\ | | | | | | | | | | | | Add issues/:iid/closed_by api endpoint Closes #26437 See merge request !10511
| * Add issues/:iid/closed_by api endpointmhasbini2017-04-121-0/+15
| |
* | Port 'Add user activities API' to CESean McGivern2017-04-141-1/+1
| | | | | | | | CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/962
* | Separate CE params on Grape APIOswaldo Ferreira2017-04-101-1/+5
|/
* Add "search" optional param and docs for V430195-document-search-param-on-apiOswaldo Ferreira2017-04-051-0/+1
| | | | Notice that this param is being supported since V3, but we have not added the proper docs for it
* Fix API group/issues default state filterAlexander Randa2017-03-281-2/+2
|
* Return 404 in project issues API endpoint when project cannot be foundAdam Niedzielski2017-03-201-1/+1
| | | | Closes #29631
* Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable2017-03-161-2/+2
| | | | | | API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
* Rename variableBob Van Landuyt2017-03-131-2/+2
| | | | | merge_request_for_resolving_discussions -> merge_request_to_resolve_discussions_of
* Always require MR-iid for resolving discussionsBob Van Landuyt2017-03-131-12/+1
| | | | | And deduplicate the finding of MR's & discussions. Now the searching is done in the service, istead of the controller & the API.
* Delegate a single discussion to a new issueBob Van Landuyt2017-03-131-0/+7
| | | | | | Delegate a discussion in a merge request into a new issue. The discussion wil be marked as resolved and a system note will be added linking to the newly created issue.
* API routes referencing a specific issue should use the issue `iid`Timothy Andrew2017-03-071-12/+12
| | | | | | - As opposed to the issue `id` that was previously being used. - This brings the API routes closer to the web interface's routes. - This is specific to API v4.
* Remove "subscribed" field from API responses returning list of issues or ↵api-drop-subscribedAdam Niedzielski2017-03-061-6/+6
| | | | merge requests
* API issues - support filtering by iidsJarka Kadlecova2017-03-011-0/+1
|
* Spam check and reCAPTCHA improvements28093-snippet-and-issue-spam-check-on-editOswaldo Ferreira2017-02-211-1/+5
|
* Unify issues search behavior by always filtering when ALL labels matches26315-unify-labels-filter-behaviorOswaldo Ferreira2017-02-201-11/+3
|
* Remove deprecated MR and Issue endpoints and preserve V3 namespace9-0-api-changesOswaldo Ferreira2017-02-061-3/+0
|
* Add some API endpoints for time tracking.Ruben Davila2017-01-181-0/+2
| | | | | | | | | | | | | | New endpoints are: POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/time_estimate" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/reset_time_estimate" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/add_spent_time" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/reset_spent_time" GET :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/time_stats"
* API: Implement project issues iid param with IssuesFinder and add tests23194-fix-no-milestone-option-for-projects-endpointDavid Eisner2017-01-121-21/+26
| | | | | | | | | | | | | - Use IssuesFinder for the /issues API resouce - Tests for iid filter in project issues API resource - Tests for No Milestone filter in issues API resources The "No Milestone" case was not previously tested, and the `/issues` resource did not support the the `milestone` parameter. - Return issues where all labels match from the issues and project issues API resources, like the group issues resource already does. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6825#note_17474533 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Adding 'IssueFinder' for 'projects' API endpointPanagiotis Atmatzidis2017-01-121-6/+8
| | | | | | | | Current filtering for "/projects/:id/issues" endpoint returns no results for "No Milestone" query. This PR introduces fix by copying filtering from "/groups/:id/issues" which works as expected.
* Add missing milestone parameterRobert Schilling2017-01-041-0/+1
|
* Refactor issues filter in APIRobert Schilling2017-01-041-21/+7
|
* Fix state_event parameter to reopen an issuefixes-issues-api-reopenRobert Schilling2016-12-221-2/+1
|
* Grapify the issues APIgrapify-issues-apiRobert Schilling2016-12-071-151/+112
|
* A simpler implementation of finding a merge requestBob Van Landuyt2016-12-061-9/+6
| | | | Following a discussion in !7180