An error occurred fetching the project authors.
  1. 01 Sep, 2020 1 commit
  2. 26 Aug, 2020 1 commit
  3. 20 Aug, 2020 1 commit
  4. 10 Aug, 2020 1 commit
  5. 07 Aug, 2020 1 commit
  6. 06 Aug, 2020 1 commit
  7. 19 Jul, 2020 1 commit
    • Thong Kuah's avatar
      Add experimental internal Kubernetes API · 5f366e2b
      Thong Kuah authored
      - Return agent_id in response if present
      - Receive token via Authorization header
      
      Use standard way for Authorization which is the header. We currently not
      care about the
      Authorization type but may enforce this in future
      
      Adds /project_info endpoint. Only for public projects. We will sort out
      authorization for internal and private projects later
      
      Remove need to hack around InternalHelpers. InternalHelpers assumes an
      actor (we don't have it) and params (don't have that either). So get the
      required data directly instead.
      5f366e2b
  8. 16 Jul, 2020 2 commits
    • Robert May's avatar
      Swap Grape over to Gitlab::Json · aea70c3f
      Robert May authored
      Forces Grape to use `Gitlab::Json` for rendering JSON,
      rather than going through ActiveSupport or its own wrapper.
      aea70c3f
    • Serena Fang's avatar
      Add API support to CRUD instance clusters · 494e5bf5
      Serena Fang authored
      Establish API endpoint for instance clusters
      
      Specs test correctly now
      
      Get, post, put, delete
      
      Add get, post, put, delete API support and specs
      Remove extra blank line
      Remove extra new line
      Add changelog entry
      Add API docs for instance cluster
      Add post, put, and delete
      Add specs for get and post
      More specs for get
      
      Add specs for put and delete
      
      Add specs for put and delete instance clusters, fix linting
      
      Add documentation for instance cluster API
      
      Add documentation for how to CRUD instance clusters via API, in the
      process of documenting also tested that curl requests work
      
      Git rebase with master
      
      Need to rebase because behind master by a lot of commits, this was
      failing doclint tests
      
      Accidentally pushed a merge conflict
      
      Address MR review comments
      
      Fix docs and changelog, add specs and params
      
      Address MR review comments
      
      Add clarity to docs and changelog, add some specs, more api
      parameters
      
      Address remaining MR comments
      
      Remove extra new lines
      
      Add a spec to ensure no project clusters
      
      Fix relative link
      
      Actually fix the relative link this time
      
      Put instance cluster API in admin module
      
      Move instance cluster code and specs to admin module
      
      Add a spec for multiple instance clusters
      
      Added a spec for multiple instance clusters, also moved some specs into
      the valid params context since they had valid params.
      494e5bf5
  9. 15 Jul, 2020 2 commits
  10. 10 Jul, 2020 1 commit
  11. 09 Jul, 2020 1 commit
  12. 06 Jul, 2020 1 commit
  13. 29 Jun, 2020 1 commit
    • Stan Hu's avatar
      Upgrade to Grape v1.3.3 · 3a0c6dd9
      Stan Hu authored
      This brings back many of the changes in
      https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27276. This was
      reverted due to some failures in the QA tests with nil parameters.
      
      Grape v1.3.3 brings in Ruby 2.7 support and a number of fixes:
      https://github.com/ruby-grape/grape/blob/master/CHANGELOG.md
      
      1. Move all inherited `Grape::API` -> `Grape::API::Instance`
      2. Remove use of Virtus since this has been removed from Grape.
      3. Extract `Rack::Response` from API error
      4. Grape v1.2.3 pulled in a fix used in `SafeFile`:
      https://github.com/ruby-grape/grape/pull/1844, so we no longer need
      to maintain our custom type.
      5. Adapt `WorkhorseFile` with the latest changes to make custom types
      work with Grape and dry-types.
      6. Ensure `Array[String]` is coerced properly.
      
      The change from Virtus to dry-types now requires all strings to be
      coerced to arrays. Before this was done within Virtus.
      
      7. Coerce `Array[Integer]` types to arrays of integers
      
      8. Use a new helper, `coerce_nil_params_to_array!`, that coerces nil
      Array inputs to empty arrays to preserve previous behavior.
      
      If you have a parameter of type `Array[String]`, for example, Grape used
      to coerce a provided `nil` value to `[]`. Grape no longer does this for
      us, so we need a helper method that will automatically do this if the
      parameter is present.
      
      This merge request also introduces two Rubocop rules for Grape v1.3:
      
      1. `Grape::API::Instance` instead of `Grape::API` is required, unless we
      solve https://gitlab.com/gitlab-org/gitlab/-/issues/215230.
      
      2. Grape parameters defined with `Array` types (e.g. `Array[String]`,
      `Array[Integer]`) must have a `coerce_with` block or they will fail to
      parse properly. See
      https://github.com/ruby-grape/grape/blob/master/UPGRADING.md for more
      details.
      3a0c6dd9
  14. 25 Jun, 2020 1 commit
  15. 27 May, 2020 1 commit
  16. 26 May, 2020 1 commit
    • Patrick Derichs's avatar
      Add API endpoint for resource milestone events · a54aee49
      Patrick Derichs authored
      Also add specs and documentation
      
      Edit intro to docs page
      
      Edit docs examples
      
      - Rearrange example requests and responses
      - Surround request URLs in quotation marks
      
      Apply suggestion to app/finders/resource_milestone_event_finder.rb
      
      Apply suggestion to doc/api/resource_milestone_events.md
      a54aee49
  17. 15 May, 2020 2 commits
  18. 14 May, 2020 1 commit
  19. 13 May, 2020 2 commits
  20. 30 Apr, 2020 1 commit
    • Oswaldo Ferreira's avatar
      Log Puma timeouts for API calls · b7a0bee7
      Oswaldo Ferreira authored
      This handles a specific exception raised
      by `rack-timeout` Gem when Puma requests
      surpass the configured timeout.
      
      This exception wasn't being handled properly
      (and logged), given it inherits from `Exception`,
      which is not handled by Grape `rescue_from :all`.
      b7a0bee7
  21. 27 Apr, 2020 2 commits
    • Stan Hu's avatar
      Revert "Merge branch 'sh-update-grape-gem' into 'master'" · 106dbbfb
      Stan Hu authored
      This reverts merge request !27276
      106dbbfb
    • Stan Hu's avatar
      Upgrade Grape v1.1.0 to v1.3.2 · f31bac1d
      Stan Hu authored
      This brings in Ruby 2.7 suport and a number of fixes:
      https://github.com/ruby-grape/grape/blob/master/CHANGELOG.md
      
      1. Move all inherited Grape::API -> Grape::API::Instance
      2. Remove use of Virtus since this has been removed from Grape.
      3. Extract Rack::Response from API error
      4. Grape v1.2.3 pulled in a fix used in SafeFile:
      https://github.com/ruby-grape/grape/pull/1844, so we no longer need
      to maintain our custom type.
      5. Adapt WorkhorseFile with the latest changes to make custom types work
      with Grape and dry-types.
      6. Ensure Array[String] is coerced properly.
      
      The change from Virtus to dry-types now requires all strings to be
      coerced to arrays. Before this was done within Virtus.
      
      7. Coerce Array[Integer] types to arrays of integers
      
      The change from Virtus to dry-types now requires all strings to be
      coerced to arrays of integers. Before this was done within Virtus.
      f31bac1d
  22. 14 Apr, 2020 1 commit
  23. 07 Apr, 2020 1 commit
  24. 06 Apr, 2020 1 commit
  25. 31 Mar, 2020 1 commit
  26. 27 Mar, 2020 1 commit
  27. 06 Mar, 2020 1 commit
    • Drew Blessing's avatar
      Fix SCIM API Application Context · e530327a
      Drew Blessing authored
      The SCIM API needs
      to override the Application Context and set the user to nil
      since the SCIM API doesn't operate in the context of a user.
      Rather, the SCIM API uses a static token specific to the group
      enabling SCIM.
      
      Without overriding the context saving a user will hang when
      attempting to resolve the current_user set in the Application
      Context in the main API (lib/api/api.rb).
      e530327a
  28. 28 Feb, 2020 1 commit
    • Sean McGivern's avatar
      API endpoint to remove jobs from Sidekiq based on metadata · 5b4fe788
      Sean McGivern authored
      This API endpoint uses job metadata to remove jobs from a queue. It can
      only be used by admins, and deletes as many jobs as it can in 30
      seconds. If it exceeds 30 seconds, it returns a flag indicating that the
      user should try again to finish processing the queue.
      
      (Because of the way Sidekiq queues work, it can't resume where it left
      off, so you just have to start from scratch each time.)
      
      By default, it's implemented in GraphQL, but there's also a matching
      REST endpoint for convenience.
      5b4fe788
  29. 20 Feb, 2020 1 commit
  30. 11 Feb, 2020 1 commit
    • George Koltsov's avatar
      Add Group Import API endpoint · 6bf2c12d
      George Koltsov authored
      - Add POST '/groups/import' API endpoint
      - Triggers Group Import functionality similar to Project Import
      - Imports a group structure along with it's relations
      6bf2c12d
  31. 10 Feb, 2020 2 commits
  32. 22 Jan, 2020 1 commit
    • Oswaldo Ferreira's avatar
      Add subscription_plan and caller_id to ApplicationContext · 040a742e
      Oswaldo Ferreira authored
      It adds new attributes subscription_plan and caller_id.
      
      The subscription_plan can be "free", "bronze", "silver" or "gold",
      these are exclusively fetched from the given namespace (or the
      project if it's not given).
      
      The caller_id can be the controller action name if it's a regular
      Rails request, or the Grape route, when it's an API request.
      
      These new attributes will also be logged at Sidekiq logs, along
      the project, user and namespace.
      040a742e
  33. 11 Jan, 2020 1 commit
  34. 07 Jan, 2020 1 commit