An error occurred fetching the project authors.
  1. 06 Jul, 2017 2 commits
    • Yorick Peterse's avatar
      Added Cop to blacklist the use of `dependent:` · dddf1378
      Yorick Peterse authored
      This is allowed for existing instances so we don't end up 76 offenses
      right away, but for new code one should _only_ use this if they _have_
      to remove non database data. Even then it's usually better to do this in
      a service class as this gives you more control over how to remove the
      data (e.g. in bulk).
      dddf1378
    • Yorick Peterse's avatar
      Add many foreign keys to the projects table · 028db84c
      Yorick Peterse authored
      This removes the need for relying on Rails' "dependent" option for data
      removal, which is _incredibly_ slow (even when using :delete_all) when
      deleting large amounts of data. This also ensures data consistency is
      enforced on DB level and not on application level (something Rails is
      really bad at).
      
      This commit also includes various migrations to add foreign keys to
      tables that eventually point to "projects" to ensure no rows get
      orphaned upon removing a project.
      028db84c
  2. 04 Jul, 2017 1 commit
  3. 26 Jun, 2017 1 commit
  4. 23 Jun, 2017 1 commit
  5. 21 Jun, 2017 2 commits
  6. 20 Jun, 2017 1 commit
  7. 16 Jun, 2017 2 commits
  8. 15 Jun, 2017 1 commit
  9. 01 Jun, 2017 1 commit
  10. 31 May, 2017 3 commits
  11. 29 May, 2017 2 commits
  12. 25 May, 2017 1 commit
  13. 24 May, 2017 1 commit
  14. 23 May, 2017 2 commits
  15. 18 May, 2017 1 commit
  16. 12 May, 2017 3 commits
    • Sean McGivern's avatar
      Fix conflict resolution from corrupted upstream · ad2bfeb8
      Sean McGivern authored
      I don't know why this happens exactly, but given an upstream and fork repository
      from a customer, both of which required GC, resolving conflicts would corrupt
      the fork so badly that it couldn't be cloned.
      
      This isn't a perfect fix for that case, because the MR may still need to be
      merged manually, but it does ensure that the repository is at least usable.
      
      My best guess is that when we generate the index for the conflict
      resolution (which we previously did in the target project), we obtain a
      reference to an OID that doesn't exist in the source, even though we already
      fetch the refs from the target into the source.
      
      Explicitly setting the source project as the place to get the merge index from
      seems to prevent repository corruption in this way.
      ad2bfeb8
    • Valery Sizov's avatar
      78ef2360
    • Valery Sizov's avatar
      e2a3a509
  17. 09 May, 2017 1 commit
  18. 08 May, 2017 2 commits
  19. 06 May, 2017 1 commit
  20. 04 May, 2017 1 commit
  21. 03 May, 2017 1 commit
  22. 02 May, 2017 1 commit
  23. 26 Apr, 2017 1 commit
  24. 25 Apr, 2017 1 commit
    • Sean McGivern's avatar
      Show correct size when MR diff overflows · a0979c05
      Sean McGivern authored
      The problem is that we often go via a diff object constructed from the diffs
      stored in the DB. Those diffs, by definition, don't overflow, so we don't have
      access to the 'correct' `real_size` - that is stored on the MR diff object
      iself.
      a0979c05
  25. 10 Apr, 2017 2 commits
  26. 08 Apr, 2017 4 commits