An error occurred fetching the project authors.
  1. 02 Aug, 2021 1 commit
    • Reuben Pereira's avatar
      Deprecate container_registry_enabled in projects public API · 123c561f
      Reuben Pereira authored
      Now that we've migrated to use
      ProjectFeature#container_registry_access_level instead of
      Project#container_registry_enabled, allow
      container_registry_access_level to be modified by the public
      projects API.
      
      This allows users to set the visibility of a
      container registry independently of the project visibility.
      
      Also update the public API docs.
      
      Deprecate container_registry_enabled in the public API in favor of
      container_registry_access_level.
      
      Changelog: deprecated
      123c561f
  2. 21 Jul, 2021 1 commit
  3. 19 Jul, 2021 3 commits
  4. 08 Jul, 2021 1 commit
  5. 06 Jul, 2021 1 commit
  6. 02 Jul, 2021 1 commit
  7. 23 Jun, 2021 1 commit
    • Adam Hegyi's avatar
      Improve the performance of project/users API · 5b7f3608
      Adam Hegyi authored
      This change improves the performance of the api/v4/projects/:id/users
      endpoint (behind FF). The change also changes a database index in the
      project_authorizations table.
      
      Changelog: performance
      5b7f3608
  8. 18 Jun, 2021 1 commit
  9. 16 Jun, 2021 1 commit
  10. 15 Jun, 2021 1 commit
  11. 11 Jun, 2021 3 commits
  12. 10 Jun, 2021 2 commits
  13. 08 Jun, 2021 2 commits
  14. 07 Jun, 2021 1 commit
  15. 01 Jun, 2021 1 commit
  16. 24 May, 2021 1 commit
  17. 21 May, 2021 1 commit
  18. 10 May, 2021 1 commit
  19. 01 May, 2021 1 commit
    • Igor Drozdov's avatar
      Reset state correctly for tests failed in Rails 6.1 · a5d10d4c
      Igor Drozdov authored
      Objects created via let_it_be are shared between tests.
      Sometimes we reload them in order to reset the state.
      Sometimes it's not enough.
      For example, some tests fail because @_destroyed instance
      variable preserved. So the objects removed in a previous
      test, marked as removed in the subsequent ones.
      
      Let's use refind to fix those cases
      a5d10d4c
  20. 30 Apr, 2021 1 commit
  21. 23 Apr, 2021 1 commit
  22. 22 Apr, 2021 1 commit
  23. 14 Apr, 2021 1 commit
  24. 12 Apr, 2021 1 commit
    • Sean McGivern's avatar
      Immediately unlink Rack::Multipart temporary files · 9da1771d
      Sean McGivern authored
      Rack writes files from multipart/form-data requests to disk in a
      temporary file. Rack includes a middleware to clean these up -
      Rack::TempfileReaper - but that won't withstand a process being sent
      SIGKILL. To handle that case, we can immediately unlink the created
      temporary file, which means it will be removed once we're done with it
      or the current process goes away.
      
      For development mode and test mode, we have to ensure that this new
      middleware is before Gitlab::Middleware::Static, otherwise we might not
      get the chance to set our own middleware.
      
      With direct upload configured, GitLab mostly doesn't accept
      multipart/form-data requests in a way where they reach Rack directly -
      they typically go via Workhorse which accelerates them - but there are
      cases where it can happen, and direct upload is still only an option.
      
      To test this manually, we can set `$GITLAB_API_TOKEN_LOCAL` to a
      personal access token for the API in the local environment,
      `$PATH_TO_FILE` to be a path to a (preferably large) file to be
      uploaded, and break the actual saving of uploads (in the default case
      with GDK, stop Minio):
      
          curl -H "Private-Token: $GITLAB_API_TOKEN_LOCAL" \
            -F "file=@$PATH_TO_FILE" \
            http://localhost:3000/api/v4/projects/1/uploads
      
      Once the upload is finished and the request fails, we'll see the file we
      uploaded in `$TMPDIR`:
      
          $ ls -l $TMPDIR/RackMultipart* | awk '{ print $5, $8 }'
          952107008 17:40
      
      With this change, that won't happen: we'll see the file created and
      immediately unlinked, so no matter what happens, it won't stick around
      on disk. (This specific test case is handled by Rack::TempfileReaper in
      later versions of Rack, but it still depends on manual cleanup.)
      9da1771d
  25. 08 Apr, 2021 2 commits
  26. 01 Apr, 2021 1 commit
  27. 30 Mar, 2021 1 commit
  28. 25 Mar, 2021 2 commits
  29. 09 Mar, 2021 1 commit
  30. 05 Mar, 2021 1 commit
  31. 03 Mar, 2021 1 commit
  32. 22 Feb, 2021 1 commit