f46739191a
This currently causes 500's errors when loading the MR page (Discussion) in a few scenarios. We were not considering detailed diff headers such as "--- a/doc/update/mysql_to_postgresql.md\n+++ b/doc/update/mysql_to_postgresql.md" to crop the diff. In order to address it, we're now using Gitlab::Diff::Parser, clean the diffs and builds Gitlab::Diff::Line objects we can iterate and filter on. |
||
---|---|---|
.. | ||
file_collection | ||
formatters | ||
diff_refs_spec.rb | ||
file_spec.rb | ||
highlight_spec.rb | ||
inline_diff_markdown_marker_spec.rb | ||
inline_diff_marker_spec.rb | ||
inline_diff_spec.rb | ||
line_mapper_spec.rb | ||
parallel_diff_spec.rb | ||
parser_spec.rb | ||
position_spec.rb | ||
position_tracer_spec.rb |