Add table for files in merge request diffs
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.
Loading
-
@smcgivern I think this is causing a 500 error creating merge requests on our instance since the 9.4.0 upgrade - details here: https://support.gitlab.com/hc/en-us/requests/80519
-
@smcgivern Sure - but I don't know how to share it privately! I've put a link to a zip of the git format-patch output onto the support ticket, can you see it there?
I am very prepared to believe that our user has managed to do something strange, but I can't currently see what!
Edited by Joseph Heenan -
🔴 @smcgivernmentioned in issue #35539 (closed)
-
🔴 @smcgivernAuthor Contributor@jogux thanks, that was very helpful! I've created https://gitlab.com/gitlab-org/gitlab-ce/issues/35539 and I'm trying to write a minimal test case now.
-
Awesome, thank you @smcgivern!
-
🔴 @smcgivernAuthor Contributor/done
Please register or sign in to comment