1. 31 5月, 2017 1 次提交
  2. 11 5月, 2017 1 次提交
  3. 10 5月, 2017 1 次提交
  4. 26 4月, 2017 1 次提交
    • T
      Allow admins to sudo to blocked users. · 4dfdef2d
      Timothy Andrew 提交于
      - Currently, (for example) admins can't delete snippets for blocked users, which
        is an unexpected limitation.
      
      - We modify `authenticate!` to conduct the `access_api` policy check against the
        `initial_current_user`, instead of the user being impersonated.
      
      - Update CHANGELOG for !10842
      4dfdef2d
  5. 09 4月, 2017 1 次提交
  6. 27 3月, 2017 1 次提交
    • T
      API: Make the /notes endpoint work with noteable iid instead of id · add5cd99
      Toon Claes 提交于
      In API V4 all endpoints were changed so Merge Requests and Issues
      should be referred by iid, instead of id. Except the /notes endpoint
      was forgotten. So change the endpoints from:
      
      - /projects/:id/issues/:issue_id/notes
      - /projects/:id/merge_requests/:merge_request_id/notes
      
      To:
      
      - /projects/:id/issues/:issue_iid/notes
      - /projects/:id/merge_requests/:merge_request_iid/notes
      
      For Project Snippets nothing changes.
      add5cd99
  7. 22 3月, 2017 1 次提交
  8. 10 3月, 2017 2 次提交
  9. 07 3月, 2017 2 次提交
  10. 06 3月, 2017 2 次提交
  11. 03 3月, 2017 2 次提交
  12. 02 3月, 2017 3 次提交
  13. 24 2月, 2017 1 次提交
  14. 23 2月, 2017 1 次提交
  15. 22 2月, 2017 3 次提交
  16. 20 2月, 2017 1 次提交
  17. 14 2月, 2017 1 次提交
    • T
      API: Consolidate /projects endpoint · 4e9e29d2
      Toon Claes 提交于
      It consolidates these endpoints:
       - /projects
       - /projects/owned
       - /projects/visible
       - /projects/starred
       - /projects/all
      
      Into the /projects endpoint using query parameters.
      4e9e29d2
  18. 03 2月, 2017 2 次提交
  19. 24 1月, 2017 1 次提交
  20. 20 1月, 2017 2 次提交
  21. 19 1月, 2017 1 次提交
    • R
      Add some API endpoints for time tracking. · 0f3c9355
      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"
      0f3c9355
  22. 16 1月, 2017 1 次提交
  23. 04 1月, 2017 1 次提交
    • L
      WIP: Add tests and make sure that headers are set · 8c9a4ed3
      Lin Jen-Shin 提交于
      * We realized that headers were not set whenever we give 204
        because `render_api_error!` doesn't preserve the headers.
      
      * We also realized that `update_runner_info` would be called in
        POST /builds/register every time therefore runner is updated
        every time, ticking the queue, making this last_update didn't
        work very well, and the test would be failing due to that.
      8c9a4ed3
  24. 24 12月, 2016 1 次提交
  25. 21 12月, 2016 2 次提交
    • M
      Add more storage statistics · 3ef4f74b
      Markus Koller 提交于
      This adds counters for build artifacts and LFS objects, and moves
      the preexisting repository_size and commit_count from the projects
      table into a new project_statistics table.
      
      The counters are displayed in the administration area for projects
      and groups, and also available through the API for admins (on */all)
      and normal users (on */owned)
      
      The statistics are updated through ProjectCacheWorker, which can now
      do more granular updates with the new :statistics argument.
      3ef4f74b
    • G
      Remove redundant pagination helpers after a bad merge · 468b47d4
      Grzegorz Bizon 提交于
      [ci skip]
      468b47d4
  26. 16 12月, 2016 1 次提交
    • T
      Calls to the API are checked for scope. · 7fa06ed5
      Timothy Andrew 提交于
      - Move the `Oauth2::AccessTokenValidationService` class to
        `AccessTokenValidationService`, since it is now being used for
        personal access token validation as well.
      
      - Each API endpoint declares the scopes it accepts (if any). Currently,
        the top level API module declares the `api` scope, and the `Users` API
        module declares the `read_user` scope (for GET requests).
      
      - Move the `find_user_by_private_token` from the API `Helpers` module to
        the `APIGuard` module, to avoid littering `Helpers` with more
        auth-related methods to support `find_user_by_private_token`
      7fa06ed5
  27. 13 12月, 2016 1 次提交
  28. 12 12月, 2016 1 次提交
  29. 10 12月, 2016 1 次提交