diff options
| author | Robert Speicher <rspeicher@gmail.com> | 2016-03-07 19:04:00 -0500 |
|---|---|---|
| committer | Robert Speicher <rspeicher@gmail.com> | 2016-03-07 19:04:00 -0500 |
| commit | f17f168f56c6e77391d22f900b9b9b2759388770 (patch) | |
| tree | 22b77c64f50d67f65155006d85f5de9bedda361c /docker | |
| parent | 2db00dd5e0384cb5fb1d22864261283dd779a19f (diff) | |
| download | gitlab-ce-rs-note-st_diff.tar.gz | |
Ensure a Note's st_diff attribute is properly setrs-note-st_diff
First, for reasons unknown, `diff_for_line_code` wasn't being called for
MergeRequest noteables. So we removed that check.
Second, when it _was_ being called, it didn't do a good enough job of
returning a diff -- it could return a `Note` record that didn't even
have a diff itself!
So if a user posted a reply to an outdated diff discussion, the new
note's `st_diff` would be `nil`, and the frontend wouldn't know how to
display it ("It's got a line code but no diff? :boom:").
Now the reply gets a diff from its "parent" note (if one's
available), and everyone's happy.
Diffstat (limited to 'docker')
0 files changed, 0 insertions, 0 deletions
