gitlab-org--gitlab-foss/app
Douwe Maan 02591b0430 Merge branch 'disable-commenting-on-unrelatable-diff-line' into 'master'
Disable commenting on unrelatable diff line

## What does this MR do?

Fixes a bug where users can comment on diff lines that can't be commented on and attached to.

This is the case for unfolded lines and lines that appear as snippets in the discussion tab.

**!5864 should be merged before this MR.**

## Are there points in the code the reviewer needs to double check?

😕 

## Why was this MR needed?

Comments were getting lost on the discussion feed, unable to find their related diff.

## What are the relevant issue numbers?

Closes #20633.

## Screenshots (if relevant)

![diffs-comment-fix](/uploads/f902b687fda75492e38397f9705283e0/diffs-comment-fix.mp4)

## Does this MR meet the acceptance criteria?

- [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [ ] API support added
- Tests
  - [ ] Added for this feature/bug
  - [ ] All builds are passing
- [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [ ] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !5681
2016-08-23 21:28:07 +00:00
..
assets Added unfold test to parallel and added 'diff discussion' context 2016-08-23 20:45:29 +01:00
controllers Merge branch 'fix-file-links-on-project-page' into 'master' 2016-08-23 20:50:54 +00:00
finders Merge branch 'issue_18135' into 'master' 2016-08-19 23:06:30 +00:00
helpers Merge branch 'gokmengoksel/gitlab-ce-koding' into 'master' 2016-08-19 20:38:44 +00:00
mailers Merge branch 'master' into diff-line-comment-vuejs 2016-08-18 09:21:40 -06:00
models Also check if Akismet is enabled, before showing the `Submit as spam` button. 2016-08-22 21:36:04 -05:00
services Merge branch 'expiration-date-on-memberships' into 'master' 2016-08-19 17:08:03 +00:00
uploaders Remove magic comments from Ruby files (!5456) 2016-07-24 07:08:45 +02:00
validators refactor url validator to use sanitizer for check 2016-07-01 09:02:45 +02:00
views Merge branch '21107-mr-pipeline-404' into 'master' 2016-08-23 17:51:16 +00:00
workers Merge branch '21010-emailsonpushworker-incorrectly-claims-deleted-a-commit-after-a-push' into 'master' 2016-08-19 18:16:55 +00:00