-
- Downloads
There was an error fetching the commit references. Please try again later.
Trim first char of diff line text on diff discussions
Before, diff file `higlighted_diff_lines`/`parallel_diff_lines` and diff discussion `truncated_diff_lines` were inconsistent: `text` and `rich_text` on the latter included the leading +/-/<space> character, like on the backend, while the former had no `text` and its `rich_text` had dropped this char. This resulted in a bug when the suggestions feature expected these diff line objects to be identical in format and thus interchangeable, which was not the case.
Showing
- app/assets/javascripts/diffs/store/utils.js 7 additions, 3 deletionsapp/assets/javascripts/diffs/store/utils.js
- app/assets/javascripts/notes/components/diff_with_note.vue 1 addition, 6 deletionsapp/assets/javascripts/notes/components/diff_with_note.vue
- app/assets/javascripts/notes/components/noteable_discussion.vue 5 additions, 1 deletion...sets/javascripts/notes/components/noteable_discussion.vue
- app/assets/javascripts/notes/stores/mutations.js 5 additions, 2 deletionsapp/assets/javascripts/notes/stores/mutations.js
- app/assets/javascripts/notes/stores/utils.js 4 additions, 0 deletionsapp/assets/javascripts/notes/stores/utils.js
- changelogs/unreleased/dm-trim-discussion-truncated-line-first-chars.yml 5 additions, 0 deletions...eleased/dm-trim-discussion-truncated-line-first-chars.yml
- spec/javascripts/diffs/store/utils_spec.js 2 additions, 7 deletionsspec/javascripts/diffs/store/utils_spec.js
- spec/javascripts/notes/stores/mutation_spec.js 11 additions, 5 deletionsspec/javascripts/notes/stores/mutation_spec.js
Please register or sign in to comment