Skip to content
Snippets Groups Projects
  1. Apr 27, 2021
  2. Apr 26, 2021
  3. Apr 23, 2021
  4. Apr 22, 2021
    • Alexandru Croitor's avatar
      Prevent non-owners to set system_note_timestamp · 44cb1cb3
      Alexandru Croitor authored
      When an issue is created or updated though API for import
      purposes we allow providing created_at and updated_at params
      these would then be reflected also in system notes. Only admins
      and project owners should be able to set these dates.
      44cb1cb3
  5. Apr 20, 2021
  6. Apr 14, 2021
  7. Apr 13, 2021
  8. Apr 12, 2021
    • Alexis Kalderimis's avatar
      Require 'api' scope to execute mutations · 915b1f7b
      Alexis Kalderimis authored
      Verify that read_api tokens cannot run mutations.
      
      Also: adds tests use of OAuth tokens for GraphQL
      
      We make some changes to the sessionless_authentication module
      in order to capture the request_authenticator, so that we can access
      the token scopes, without making any extra queries.
      
      We ensure we always authorize the mutation, which, like all resolvers,
      needs to opt in to the check.
      
      Unlike resolvers, mutations should always raise. So
      `BaseMutation.authorized?` raises on failure.
      
      Logic for handling scopes is pushed down to the `ObjectAuthorization`
      class, and encapsulated in the `ScopeValidator`, which limits the
      methods that can be called by resolvers.
      915b1f7b
  9. Apr 11, 2021
  10. Apr 09, 2021
  11. Apr 08, 2021
    • alex pooley's avatar
      Update ruby-saml and rexml gems · 33226dce
      alex pooley authored and Imre (Admin)'s avatar Imre (Admin) committed
      33226dce
    • Vladimir Shushlin's avatar
      Fix broken dora4 spec · 0e17f95b
      Vladimir Shushlin authored
      By default dora4 metrics controller returns data for last 3 months
      
      We use 2021-01-01 as fixture date in specs.
      
      So controllers stoped returning this data on 2021-04-02
      
      Also, max range was calculated as 91 days, while it's actually
      possible to have 92 days in 3 months.
      I caught this trying to fix the issue
      
      
      (cherry picked from commit b76bd0d8)
      0e17f95b
  12. Apr 01, 2021
  13. Mar 31, 2021
Loading