BigW Consortium Gitlab

  1. 21 Mar, 2016 17 commits
  2. 20 Mar, 2016 17 commits
  3. 19 Mar, 2016 6 commits
    • Merge branch 'fix-image-diff' into 'master' · 01fe50a7
      Douwe Maan authored
      Fix bug where wrong commit ID was being used in a merge request diff to show old image
      
      Closes #3769
      
      Closes #14327
      
      See merge request !3300
    • Create repositories in Spinach issues tests · fc5ff7af
      Yorick Peterse authored
      Similar to ad90dba5185e30883d5ad6008c166b0df0108ebf we always have a
      repository in the real world, so let's also create one in our Spinach
      tests.
    • Create repositories in IssuesController specs · 295fdf72
      Yorick Peterse authored
      In the real world a project always has a repository. This fact allows
      code such as Issue#related_branches to work without explicitly checking
      if a repository exists.
    • Cache output of Repository#exists? · 68a4c98f
      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.
    • Tweaked performance of Issue#related_branches · 41b8d226
      Yorick Peterse authored
      Requesting the branch names of a repository works even when it's empty,
      thus there's no need to explicitly check for an empty repository.
      Removing this check cuts down the amount of Git operations which in turn
      cuts down request timings a bit. The regular expression used to compare
      branches was also moved out of the loop so it's created only once.