1. 11 Mar, 2016 2 commits
  2. 10 Mar, 2016 1 commit
    • Yorick Peterse's avatar
      Optimize Project#ci_service(s) · 3065b4cfa6ae
      Yorick Peterse authored
      The method Project#ci_services would load all services into memory
      (including _all_ their columns) and then use Enumerable#select to reduce
      the list. Project#ci_service in turn would further reduce this list down
      to just 1 Service instance.
      
      Instead of doing all this in Ruby we can just offload the work to the
      database, reducing the amount of time spent in these methods. These
      changes reduce the time of the first call to Project#ci_services from
      around 240 ms to around 10 ms, though the final timings will vary based
      on database load. Because Project#ci_service is memoized there's no
      further overhead introduced by using a database query.
      
      Fixes gitlab-org/gitlab-ce#14186
      3065b4cfa6ae
  3. 09 Mar, 2016 1 commit
  4. 07 Mar, 2016 14 commits
  5. 05 Mar, 2016 1 commit
  6. 03 Mar, 2016 1 commit
  7. 02 Mar, 2016 1 commit
  8. 26 Feb, 2016 1 commit
    • Yorick Peterse's avatar
      Flush repository caches before renaming projects · e19fc7ede028
      Yorick Peterse authored
      This ensures that if a project is later re-created using the old path it
      doesn't end up re-using the old cache. This also ensures we don't keep
      the cache around until its expired by Redis itself.
      
      Fixes gitlab-org/gitlab-ce#13790
      e19fc7ede028
  9. 24 Feb, 2016 2 commits
  10. 23 Feb, 2016 1 commit
  11. 17 Feb, 2016 1 commit
  12. 16 Feb, 2016 1 commit
  13. 11 Feb, 2016 1 commit
    • Kirill Zaitsev's avatar
      Add new data to project in push, issue, merge-request and note webhooks data · c6ea19b483b0
      Kirill Zaitsev authored
      - Add `avatar_url`, `description`, `git_ssh_url`, `git_http_url`,
        `path_with_namespace` and `default_branch` in `project` in push, issue,
        merge-request and note webhooks data
      - Deprecate the `ssh_url` in favor of `git_ssh_url` and `http_url` in
        favor of `git_http_url` in `project` for push, issue, merge-request and
        note webhooks data
      - Deprecate the `repository` key in push, issue, merge-request and
        note webhooks data, use `project` instead
      c6ea19b483b0
  14. 08 Feb, 2016 1 commit
    • Yorick Peterse's avatar
      Cache various Repository Git operations · 09d8684679a2
      Yorick Peterse authored
      This caches the output of the following methods:
      
      * Repository#empty?
      * Repository#has_visible_content?
      * Repository#root_ref
      
      The cache for Repository#has_visible_content? is flushed whenever a
      commit is pushed to a new branch or an existing branch is removed.
      The cache for Repository#root_ref is only flushed whenever a user
      changes the default branch of a project. The cache for Repository#empty?
      is never explicitly flushed as there's no need for it.
      09d8684679a2
  15. 05 Feb, 2016 2 commits
  16. 03 Feb, 2016 3 commits
  17. 29 Jan, 2016 1 commit
  18. 28 Jan, 2016 1 commit
  19. 27 Jan, 2016 2 commits
  20. 26 Jan, 2016 1 commit
  21. 22 Jan, 2016 1 commit