summaryrefslogtreecommitdiff
path: root/lib/api/issues.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'rename-abilities' into 'master'Dmitriy Zaporozhets2015-06-261-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename abilities to correspond contoller/model action names write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code ``` def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end ``` See merge request !896
| * Rename abilities to correspond contoller/model action namesrename-abilitiesDmitriy Zaporozhets2015-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Only people who can manage issue can assign labels to itpermission-improvementsDmitriy Zaporozhets2015-06-261-1/+1
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Query issues, merge requests and milestones with their IID through APIjubianchi2015-05-021-0/+3
|
* Refactor and improve sorting objects in API for projects, issues and merge ↵Dmitriy Zaporozhets2015-02-051-2/+8
| | | | requests
* Explicitly define ordering in models using default_scopeDmitriy Zaporozhets2015-02-051-2/+0
|
* Filters issues by milestone via APIjubianchi2014-09-261-3/+12
|
* Improve error reporting on users APIjubianchi2014-09-161-2/+2
| | | | | | | | * users (#6878, #3526, #4209): Validation error messages are now exposed through 400 responses, 409 response are sent in case of duplicate email or username * MRs (#5335): 409 responses are sent in case of duplicate merge request (source/target branches), 422 responses are sent when submiting MR fo/from unrelated forks * issues * labels * projects
* Explicit issues order in API. Fixes tests for mysql. Again :)Dmitriy Zaporozhets2014-09-041-1/+3
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Filters issues by labels via APIjubianchi2014-09-041-3/+24
|
* Explicit order of issues in API. Fixes specs for mysql dbDmitriy Zaporozhets2014-09-031-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Refactor finders. Prevent circular dependency errorDmitriy Zaporozhets2014-09-021-3/+3
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Filters issues by state via APIjubianchi2014-09-011-4/+23
|
* Improve labels validation and expose error messagesjubianchi2014-08-201-5/+6
|
* Do label validation for issues/merge requests APIRobert Schilling2014-08-141-4/+17
|
* Fix old api compatibility and testsDmitriy Zaporozhets2014-07-301-3/+11
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Move update issue code to separate serviceDmitriy Zaporozhets2014-04-021-10/+10
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Move code for issue creation to service.Dmitriy Zaporozhets2014-04-021-11/+9
| | | | | | | | | The goal of suych refactoring is to get rid of observers. Its much easier to test and code when object creation and all other related actions done in one class instead of splited across observers, callbacks etc. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fixing unsafe use of Thread.current variable :current_userAngus MacArthur2013-10-161-18/+21
|
* cattr_accessor is not threadsafe!Dmitriy Zaporozhets2013-06-111-1/+2
|
* Fix wrong documentation for issue close api. Fixes #3548Dmitriy Zaporozhets2013-06-061-1/+1
|
* Refactor API classes. So api classes like Gitlab::Issues become API::IssuesDmitriy Zaporozhets2013-05-141-1/+1
|
* API: extracted helper method to validate required parameters, code clean upSebastian Ziebell2013-02-271-1/+1
| | | | | | Added a helper method to check if required parameters are given in an API call. Can be used to return a `400 Bad Request` return code if a required attribute is missing. Code clean up and fixed tests.
* API: issues documentation and API functions updatedSebastian Ziebell2013-02-271-0/+1
| | | | | The issues documentation is updated with infos to status codes and the deprecated `DELETE` function and how to close an issue. A few more tests added to check status codes of API functions.
* Issue uses StateMachine nowAndrew8xx82013-02-181-2/+2
|
* Fixed missing current user for issue observerDmitriy Zaporozhets2013-01-021-0/+1
|
* Remove all references tp the project code parameter from the APIRiyad Preukschas2012-12-211-5/+5
|
* Method name changedAlex Denisov2012-09-161-2/+2
|
* API attributes refactoredAlex Denisov2012-09-161-18/+6
|
* Error throwing moved to api_helperAlex Denisov2012-09-101-3/+3
|
* Auth for APIrandx2012-09-101-0/+2
|
* add pagination to APINihad Abbasov2012-09-031-2/+2
|
* Deprecate the DELETE method for Issues APIRobert Speicher2012-08-221-3/+2
| | | | | | | Now returns HTTP Status 405 - http://httpstatus.es/405 Closes #1245 Closes #1264
* Fully embrace Ruby 1.9 hash syntaxRobert Speicher2012-08-101-16/+16
| | | | Didn't bother with files in db/, config/, or features/
* API: update docsNihad Abbasov2012-07-251-5/+5
|
* add issues APINihad Abbasov2012-07-241-0/+111