1. 07 2月, 2017 1 次提交
  2. 03 2月, 2017 1 次提交
  3. 27 1月, 2017 1 次提交
  4. 26 1月, 2017 1 次提交
  5. 16 1月, 2017 1 次提交
  6. 06 1月, 2017 2 次提交
  7. 05 1月, 2017 3 次提交
  8. 20 12月, 2016 3 次提交
  9. 14 12月, 2016 1 次提交
  10. 12 12月, 2016 1 次提交
    • L
      Not sure why, but apparently SHA works better · c0dfa0c6
      Lin Jen-Shin 提交于
      It's very weird that source_commit.raw_commit and
      rugged.branches[merge_request.target_branch].target
      should be completely the same. I checked with ==
      and other values which proved that both should be
      the same, but still tests cannot pass for:
      spec/services/merge_requests/refresh_service_spec.rb
      
      I decided to give it up. We could just use SHA and
      that works fine anyway.
      c0dfa0c6
  11. 10 12月, 2016 1 次提交
  12. 09 12月, 2016 3 次提交
  13. 08 12月, 2016 8 次提交
  14. 07 12月, 2016 4 次提交
  15. 06 12月, 2016 2 次提交
  16. 28 11月, 2016 2 次提交
  17. 25 11月, 2016 1 次提交
  18. 24 11月, 2016 2 次提交
  19. 22 11月, 2016 1 次提交
  20. 21 11月, 2016 1 次提交
    • Y
      Refactor cache refreshing/expiring · ffb9b3ef
      Yorick Peterse 提交于
      This refactors repository caching so it's possible to selectively
      refresh certain caches, instead of just expiring and refreshing
      everything.
      
      To allow this the various methods that were cached (e.g. "tag_count" and
      "readme") use a similar pattern that makes expiring and refreshing
      their data much easier.
      
      In this new setup caches are refreshed as follows:
      
      1. After a commit (but before running ProjectCacheWorker) we expire some
         basic caches such as the commit count and repository size.
      
      2. ProjectCacheWorker will recalculate the commit count, repository
         size, then refresh a specific set of caches based on the list of
         files changed in a push payload.
      
      This requires a bunch of changes to the various methods that may be
      cached. For one, data should not be cached if a branch used or the
      entire repository does not exist. To prevent all these methods from
      handling this manually this is taken care of in
      Repository#cache_method_output. Some methods still manually check for
      the existence of a repository but this result is also cached.
      
      With selective flushing implemented ProjectCacheWorker no longer uses an
      exclusive lease for all of its work. Instead this worker only uses a
      lease to limit the number of times the repository size is updated as
      this is a fairly expensive operation.
      ffb9b3ef