BigW Consortium Gitlab

  1. 08 Aug, 2017 1 commit
  2. 03 Aug, 2017 1 commit
    • Migrate MR commits and diffs to new tables · f2d50af9
      Sean McGivern authored
      Previously, we stored these as serialised fields - `st_{commits,diffs}` - on the
      `merge_request_diffs` table. These now have their own tables -
      `merge_request_diff_{commits,diffs}` - with a column for each attribute of the
      serialised data.
      
      Add a background migration to go through the existing MR diffs and migrate them
      to the new format. Ignore any contents that cannot be displayed. Assuming that
      we have 5 million rows to migrate, and each batch of 2,500 rows can be
      completed in 5 minutes, this will take about 7 days to migrate everything.
  3. 26 Jul, 2017 1 commit
    • Fix saving diffs that are not valid UTF-8 · 396b8f91
      Sean McGivern authored
      Previously, we used Psych, which would:
      
      1. Check if a string was encoded as binary, and not ASCII-compatible.
      2. Add the !binary tag in that case.
      3. Convert to base64.
      
      We need to do the same thing, using a new column in place of the tag.
  4. 06 Jul, 2017 2 commits
    • Add table for merge request commits · aff5c9f3
      Sean McGivern authored
      This is an ID-less table with just three columns: an association to the merge
      request diff the commit belongs to, the relative order of the commit within the
      merge request diff, and the commit SHA itself.
      
      Previously we stored much more information about the commits, so that we could
      display them even when they were deleted from the repo. Since 8.0, we ensure
      that those commits are kept around for as long as the target repo itself is, so
      we don't need to duplicate that data in the database.
    • Rename ActiverecordSerialize cop · e1a3bf30
      Yorick Peterse authored
      This cop has been renamed to ActiveRecordSerialize to match the way
      "ActiveRecord" is usually written.
  5. 16 Jun, 2017 1 commit
    • Add table for files in merge request diffs · 9a73b634
      Sean McGivern authored
      This adds an ID-less table containing one row per file, per merge request
      diff. It has a column for each attribute on Gitlab::Git::Diff that is serialised
      currently, with the advantage that we can easily query the attributes of this
      new table.
      
      It does not migrate existing data, so we have fallback code when the legacy
      st_diffs column is present instead. For a merge request diff to be valid, it
      should have at most one of:
      
      * Rows in this new table, with the correct merge_request_diff_id.
      * A non-NULL st_diffs column.
      
      It may have neither, if the diff is empty.
  6. 01 Jun, 2017 1 commit
  7. 31 May, 2017 1 commit
  8. 23 May, 2017 4 commits
  9. 25 Apr, 2017 1 commit
    • 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.
  10. 11 Apr, 2017 1 commit
  11. 10 Apr, 2017 1 commit
  12. 08 Apr, 2017 3 commits
  13. 04 Apr, 2017 1 commit
  14. 23 Feb, 2017 5 commits
  15. 12 Jan, 2017 1 commit
  16. 05 Jan, 2017 2 commits
  17. 08 Dec, 2016 1 commit
  18. 01 Dec, 2016 1 commit
  19. 21 Nov, 2016 1 commit
  20. 24 Oct, 2016 1 commit
  21. 12 Oct, 2016 3 commits
  22. 11 Oct, 2016 1 commit
  23. 10 Oct, 2016 1 commit
    • Fix Error 500 when viewing old merge requests with bad diff data · d4fab17d
      Stan Hu authored
      Customers running old versions of GitLab may have MergeRequestDiffs with
      the text ["--broken diff"] due to text generated by gitlab_git 1.0.3.
      To avoid the Error 500, verify that each element is a type that gitlab_git
      will accept before attempting to create a DiffCollection.
      
      Closes #20776
  24. 22 Sep, 2016 2 commits
  25. 19 Sep, 2016 1 commit
  26. 07 Sep, 2016 1 commit