Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-02-06Remove deprecated MR and Issue endpoints and preserve V3 namespaceOswaldo Ferreira
2017-01-18Add some API endpoints for time tracking.Ruben Davila
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"
2017-01-13API: Implement project issues iid param with IssuesFinder and add testsDavid Eisner
- 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>
2017-01-13Adding 'IssueFinder' for 'projects' API endpointPanagiotis Atmatzidis
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.
2017-01-04Add missing milestone parameterRobert Schilling
2017-01-04Refactor issues filter in APIRobert Schilling
2016-12-22Fix state_event parameter to reopen an issueRobert Schilling
2016-12-07Grapify the issues APIRobert Schilling
2016-12-06A simpler implementation of finding a merge requestBob Van Landuyt
Following a discussion in !7180
2016-12-05Feature: delegate all open discussions to IssueBob Van Landuyt
When a merge request can only be merged when all discussions are resolved. This feature allows to easily delegate those discussions to a new issue, while marking them as resolved in the merge request. The user is presented with a new issue, prepared with mentions of all unresolved discussions, including the first unresolved note of the discussion, time and link to the note. When the issue is created, the discussions in the merge request will get a system note directing the user to the newly created issue.
2016-11-29Merge branch 'jej-use-issuable-finder-instead-of-access-check' into 'security' Douwe Maan
Replace issue access checks with use of IssuableFinder Split from !2024 to partially solve https://gitlab.com/gitlab-org/gitlab-ce/issues/23867 ## Which fixes are in this MR? :warning: - Potentially untested :bomb: - No test coverage :traffic_light: - Test coverage of some sort exists (a test failed when error raised) :vertical_traffic_light: - Test coverage of return value (a test failed when nil used) :white_check_mark: - Permissions check tested ### Issue lookup with access check Using `visible_to_user` likely makes these security issues too. See [Code smells](#code-smells). - [x] :vertical_traffic_light: app/finders/notes_finder.rb:15 [`visible_to_user`] - [x] :traffic_light: app/views/layouts/nav/_project.html.haml:73 [`visible_to_user`] [`.count`] - [x] :white_check_mark: app/services/merge_requests/build_service.rb:84 [`issue.try(:confidential?)`] - [x] :white_check_mark: lib/api/issues.rb:112 [`visible_to_user`] - CHANGELOG: Prevented API returning issues set to 'Only team members' to everyone - [x] :white_check_mark: lib/api/helpers.rb:126 [`can?(current_user, :read_issue, issue)`] Maybe here too? - [x] :white_check_mark: lib/gitlab/search_results.rb:53 [`visible_to_user`] ### Previous discussions - [ ] https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#b2ff264eddf9819d7693c14ae213d941494fe2b3_128_126 - [ ] https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#7b6375270d22f880bdcb085e47b519b426a5c6c7_87_87 See merge request !2031
2016-11-29Merge branch 'zj-fix-label-creation-non-members' into 'security'Douwe Maan
Fix label creation non members Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23416 See merge request !2006
2016-11-24API: Introduce `#find_group!` which also check access permissionRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-17Remove default value for `project` argument on subscribable concernDouglas Barbosa Alexandre
2016-09-09Fix API issues sortingSean McGivern
2016-08-31API: Expose issue#confidentialRobert Schilling
2016-08-30if issue is not valid we revert back to the old labels when updatingtiagonbotelho
2016-08-30refactors update issue api request and some minor commentstiagonbotelho
2016-08-30adds test to check whether or not an email is sent to label subscribers ↵tiagonbotelho
after creating a new issue through the api
2016-08-30user is now notified when creating an issue through the apitiagonbotelho
2016-08-15Refactored AkismetHelper into AkismetService and cleaned up `Spammable`Patricio Cano
- Refactored SpamCheckService into SpamService
2016-08-15Refactored spam related code even furtherPatricio Cano
- Removed unnecessary column from `SpamLog` - Moved creation of SpamLogs out of its own service and into SpamCheckService - Simplified code in SpamCheckService. - Moved move spam related code into Spammable concern
2016-08-15Complete refactor of the `Spammable` concern and tests:Patricio Cano
- Merged `AkismetSubmittable` into `Spammable` - Clean up `SpamCheckService` - Added tests for `Spammable` - Added submit (ham or spam) options to `AkismetHelper`
2016-07-27Refactor spam validation to a concern that can be easily reused and improve ↵Patricio Cano
legibility in `SpamCheckService`
2016-07-26Refactor `SpamCheckService` to make it cleaner and clearer.Patricio Cano
2016-07-26Submit all issues on public projects to Akismet if enabled.Patricio Cano
2016-07-26Submit new issues created via the WebUI by non project members to Akismet ↵Patricio Cano
for spam check.
2016-07-12API: Expose due_date for issuesRobert Schilling
2016-06-23gitlab-org/gitlab-ce#17818 - add api call for issues by groupMarc Siegfriedt
rely only on IssuesFinder docs and changelog
2016-06-08Fix pseudo n+1 queries with Note and Note Authors in issuables APIsAlejandro Rodríguez
This was not a clear cut n+1 query, given that if you're directly subscribed to all issues that the API is returning you never really need to check for the notes. However, if you're subscribed to _all_ of them, then for each issuable you need to go once to `notes`, and once to `users` (for the authors). By preemtively loading notes and authors, at worst you have 1 extra query, and at best you saved 2n extra queries. We also took advantage of this preloading of notes when counting user notes.
2016-05-12Add API endpoints for un/subscribing from/to a labelAhmad Sherif
Closes #15638
2016-04-28Use ActionDispatch Remote IP for Akismet checkingStan Hu
Previously all remote IPs appeared at 127.0.0.1, which made Akismet not very useful. Using the ActionDispatch Remote IP (http://api.rubyonrails.org/classes/ActionDispatch/RemoteIp.html) should provide more reliable results. Closes #16629
2016-04-13Allow back dating issues on updateMichael Greene
2016-04-13Ensure that issues and merge requests are foundRobert Schilling
2016-04-13Make subscription API more RESTfulRobert Schilling
2016-04-13API: Ability to subscribe and unsubscribe from a merge requestRobert Schilling
2016-04-13API: Ability to subscribe and unsubscribe from an issueRobert Schilling
2016-04-13Update tests for moving issues via APIRobert Schilling
2016-04-13API: Ability to move an issueRobert Schilling
2016-04-08API: Expose subscribed? on issuesRobert Schilling
2016-03-28Back dating of issues when creating throught the APIZeger-Jan van de Weg
2016-03-21Minor improvements on IssuableActionsZeger-Jan van de Weg
2016-03-19minor improvements and fixed specsZeger-Jan van de Weg
2016-03-19Dry destroy action on issuablesZeger-Jan van de Weg
2016-03-19Soft delete issuablesZeger-Jan van de Weg
2016-03-18Restrict access to confidential issues through APIDouglas Barbosa Alexandre
2016-02-02Refactor spam filtering on issues APIDouglas Barbosa Alexandre
2016-02-02Support Akismet spam checking for creation of issues via APIStan Hu
Currently any spam detected by Akismet by non-members via API will be logged in a separate table in the admin page. Closes #5612
2015-06-26Merge branch 'rename-abilities' into 'master'Dmitriy Zaporozhets
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
2015-06-26Only people who can manage issue can assign labels to itDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>