1. 09 May, 2016 3 commits
    • Kamil Trzcinski's avatar
      Rename `images` to `container_registry` · be0d1b6152d9
      Kamil Trzcinski authored
      be0d1b6152d9
    • Jeroen van Baarsen's avatar
      Remove the annotate gem and delete old annotations · 1d4e8a019fa7
      Jeroen van Baarsen authored
      In a95476cc1081 the default behaviour of annotation
      has changes, which was causing a lot of noise in diffs. We decided in #17382
      that it is better to get rid of the whole annotate gem, and instead let people
      look at schema.rb for the columns in a table.
      
      Fixes: #17382
      1d4e8a019fa7
    • Stan Hu's avatar
      Improve multiple branch push performance by memoizing permission checking · 248dcf56dcb7
      Stan Hu authored
      If you attempt to push thousands of branches at once, the 60-second timeout
      will occur because GitAccess checking does a lot of work to check if the
      user has permission to push to a branch. This changes does two things:
      
      1. Instead of making 1 DB query per branch push, use a memoized list of protected branches to check
      2. Memoize what permissions the user has to perform on this project
      
      On a test of 10,000 branch pushes, this prevents gitlab-shell from hitting the 60-second
      timeout.
      
      Closes #17225
      248dcf56dcb7
  2. 08 May, 2016 1 commit
  3. 07 May, 2016 1 commit
  4. 06 May, 2016 1 commit
  5. 29 Apr, 2016 4 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
         Project#protected_branch_names.
      
      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.
      d59a599d4948
    • 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.
      430fdd6b0f84
    • Kamil Trzcinski's avatar
      179bd5452ee2
    • 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
      b040bd38452a
  6. 25 Apr, 2016 1 commit
  7. 19 Apr, 2016 2 commits
  8. 16 Apr, 2016 1 commit
  9. 13 Apr, 2016 1 commit
  10. 12 Apr, 2016 1 commit
  11. 11 Apr, 2016 1 commit
  12. 07 Apr, 2016 3 commits
  13. 01 Apr, 2016 2 commits
  14. 31 Mar, 2016 1 commit
  15. 30 Mar, 2016 1 commit
  16. 23 Mar, 2016 1 commit
  17. 22 Mar, 2016 2 commits
  18. 21 Mar, 2016 6 commits
  19. 20 Mar, 2016 4 commits
  20. 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,
      etc.
      
      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.
      2c904501c8a2
    • Felipe Artur's avatar
      Fix specs · 27db6423b217
      Felipe Artur authored
      27db6423b217
  21. 18 Mar, 2016 1 commit