1. 06 May, 2016 1 commit
  2. 29 Apr, 2016 3 commits
    • Yorick Peterse's avatar
      Tweak checking branches in Project#open_branches · d59a599d4948
      Yorick Peterse authored
      This changes 4 things:
      1. Project#protected_branches_names has been renamed to
      2. Project#open_branches uses a Set for the branch names as checking
         values in a Set is faster than checking values in a (large) Array.
      3. Some redundant code in Project#open_branches has been removed.
      4. Project#protected_branch_names now uses #pluck instead of #map,
         removing the need for loading entire DB records into memory.
    • Yorick Peterse's avatar
      Use a query in Project#protected_branch? · 430fdd6b0f84
      Yorick Peterse authored
      This changes Project#protected_branch? to use a query to check if a
      branch is protected, instead of loading all ProtectedBranch records into
      memory just to check if the list of names includes a given branch name.
    • Matt Oakes's avatar
      Support supressing text file diffs on the default branch with .gitattributes · b040bd38452a
      Matt Oakes authored
      This is a combination of 3 commits.
      - Update the bare repositories info/attributes if the default branch is updated
      - Check the diff attributes of a file before showing a diff
      - Update CHANGELOG
  3. 25 Apr, 2016 1 commit
  4. 19 Apr, 2016 2 commits
  5. 16 Apr, 2016 1 commit
  6. 13 Apr, 2016 1 commit
  7. 12 Apr, 2016 1 commit
  8. 11 Apr, 2016 1 commit
  9. 07 Apr, 2016 3 commits
  10. 01 Apr, 2016 2 commits
  11. 31 Mar, 2016 1 commit
  12. 30 Mar, 2016 1 commit
  13. 23 Mar, 2016 1 commit
  14. 22 Mar, 2016 2 commits
  15. 21 Mar, 2016 6 commits
  16. 20 Mar, 2016 4 commits
  17. 19 Mar, 2016 2 commits
    • Yorick Peterse's avatar
      Cache output of Repository#exists? · 2c904501c8a2
      Yorick Peterse authored
      This caches the output of Repository#exists? in Redis while making sure
      it's flushed properly when creating new repositories, deleting them,
      For the ProjectWiki tests to work I had to make ProjectWiki#create_repo!
      public as testing private methods in RSpec is a bit of a pain.
    • Felipe Artur's avatar
      Fix specs · 27db6423b217
      Felipe Artur authored
  18. 18 Mar, 2016 1 commit
  19. 17 Mar, 2016 1 commit
    • Yorick Peterse's avatar
      Cache project avatars stored in Git · 3e38fbd7665d
      Yorick Peterse authored
      The avatar logic has been moved from Project to Repository as this makes
      caching easier. The logic itself in turn has been changed so that the
      logo file names are cached in Redis. This cache is flushed upon pushing
      a commit but _only_ if:
      1. The commit was pushed to the default branch
      2. The commit actually changes any of the logo files
      If no branch or commit is given the cache is flushed anyway, this
      ensures that calling Repository#expire_cache without any arguments still
      flushes the avatar cache (e.g. this is used when removing a project).
      Fixes gitlab-org/gitlab-ce#14363
  20. 15 Mar, 2016 2 commits
    • Yorick Peterse's avatar
      Ignore eager loading in Project.search UNION · 26b126f838c7
      Yorick Peterse authored
      The queries that are UNION'd together don't need any eager loading
      (since we really only use the resulting SQL instead of having
      ActiveRecord actually run the queries). By dropping any eager loaded
      associations queries such as the following work instead of producing a
      SQL error:
    • Kamil Trzcinski's avatar
      Return the external issue tracker even if it's null · 2f5dd62ab64d
      Kamil Trzcinski authored
      This solves the problem with caching the nil value with instance variable.
      Without this the every time we ask for external_issue_tracker we built AR and potentially do SQL query
  21. 13 Mar, 2016 1 commit
  22. 11 Mar, 2016 2 commits