Skip to content

Create a new issue for a single discussion

What does this MR do?

Based on what is shown in #25515 (moved) I want to make it possible to create a new Issue for a single discussion in a merge request.

It also adds a button to resolve all discussions mentioned in https://gitlab.com/gitlab-org/gitlab-ce/issues/23589#note_18864573

  • Add a button to resolve a single discussion to the merge request view
  • Pre-fill a new issue when passing a a discussion to resolve
  • Resolve the discussion when creating the issue
  • Add a system note to the discussion mentioning the new issue
  • Hide the button after the issue was resolved
  • Add button to resolve all discussions in an MR

Why was this MR needed?

This is the backend part that is required to complete #25515 (moved).

Screenshots (if relevant)

The warning on the new-issue form looks like this for all discussions in an MR:

Screen_Shot_2017-02-27_at_17.29.04

And like this for a single discussion:

Screen_Shot_2017-02-27_at_17.31.34

There's a new button to create a new issue for a single discussion:

Screen_Shot_2017-01-23_at_22.45.05

And there is a button to delegate all discussions in a merge request

Screen_Shot_2017-03-08_at_20.50.58

After the issue is created, this is mentioned in a flash message:

Screen_Shot_2017-03-08_at_20.18.21

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#25515 (moved)

Merge request reports