1. 08 9月, 2018 1 次提交
    • S
      Delete a container registry asynchronously · 5830d114
      Stan Hu 提交于
      When a container registry has many tags, it's easy for the DELETE call to take more
      than 60 seconds and fail. This can also leave the registry in a bad state with
      null bytes since some of the images have been deleted with tags still pointing to them.
      In addition, we have to prevent users from accidentally initiating the delete multiple
      times or this could leave the registry with orphaned tags.
      
      This commit also adds a flash message to notify the user the registry is scheduled
      for deletion.
      
      Closes #49926, #51063
      5830d114
  2. 07 9月, 2018 1 次提交
  3. 06 8月, 2018 1 次提交
  4. 02 8月, 2018 1 次提交
    • Z
      Add repository languages for projects · 79a5d768
      Zeger-Jan van de Weg 提交于
      Our friends at GitHub show the programming languages for a long time,
      and inspired by that this commit means to create about the same
      functionality.
      
      Language detection is done through Linguist, as before, where the
      difference is that we cache the result in the database. Also, Gitaly can
      incrementaly scan a repository. This is done through a shell out, which
      creates overhead of about 3s each run. For now this won't be improved.
      
      Scans are triggered by pushed to the default branch, usually `master`.
      However, one exception to this rule the charts page. If we're requesting
      this expensive data anyway, we just cache it in the database.
      
      Edge cases where there is no repository, or its empty are caught in the
      Repository model. This makes use of Redis caching, which is probably
      already loaded.
      
      The added model is called RepositoryLanguage, which will make it harder
      if/when GitLab supports multiple repositories per project. However, for
      now I think this shouldn't be a concern. Also, Language could be
      confused with the i18n languages and felt like the current name was
      suiteable too.
      
      Design of the Project#Show page is done with help from @dimitrieh. This
      change is not visible to the end user unless detections are done.
      79a5d768
  5. 31 7月, 2018 1 次提交
  6. 30 7月, 2018 1 次提交
  7. 18 7月, 2018 1 次提交
  8. 06 7月, 2018 1 次提交
  9. 02 7月, 2018 1 次提交
  10. 28 6月, 2018 1 次提交
  11. 25 6月, 2018 1 次提交
  12. 07 6月, 2018 1 次提交
  13. 06 6月, 2018 4 次提交
  14. 25 5月, 2018 1 次提交
    • O
      Persist truncated note diffs on a new table · bb8f2520
      Oswaldo Ferreira 提交于
      We request Gitaly in a N+1 manner to build discussion diffs. Once the diffs are from different revisions, it's hard to make a single request to the service in order to build the whole response.
      With this change we solve this problem and simplify a lot fetching this piece of info.
      bb8f2520
  15. 07 5月, 2018 2 次提交
  16. 04 5月, 2018 2 次提交
  17. 02 5月, 2018 2 次提交
  18. 25 4月, 2018 1 次提交
    • S
      Move NotificationService calls to Sidekiq · b5042e53
      Sean McGivern 提交于
      The NotificationService has to do quite a lot of work to calculate the
      recipients for an email. Where possible, we should try to avoid doing this in an
      HTTP request, because the mail are sent by Sidekiq anyway, so there's no need to
      schedule those emails immediately.
      
      This commit creates a generic Sidekiq worker that uses Global ID to serialise
      and deserialise its arguments, then forwards them to the NotificationService.
      The NotificationService gains an `#async` method, so you can replace:
      
          notification_service.new_issue(issue, current_user)
      
      With:
      
          notification_service.async.new_issue(issue, current_user)
      
      And have everything else work as normal, except that calculating the recipients
      will be done by Sidekiq, which will then schedule further Sidekiq jobs to send
      each email.
      b5042e53
  19. 24 4月, 2018 1 次提交
  20. 20 4月, 2018 1 次提交
  21. 05 4月, 2018 2 次提交
  22. 30 3月, 2018 1 次提交
    • S
      Send emails for issues due tomorrow · 2db218f8
      Sean McGivern 提交于
      Also, refactor the mail sending slightly: instead of one worker sending all
      emails, create a worker per project with issues due, which will send all emails
      for that project.
      2db218f8
  23. 26 3月, 2018 2 次提交
  24. 09 3月, 2018 1 次提交
  25. 07 3月, 2018 1 次提交
  26. 06 3月, 2018 6 次提交
  27. 01 3月, 2018 1 次提交