Skip to content

Edit labels from issues and merge requests show page.

Created by: PaulaCara

The idea of this feature is to have the possibility of editing labels from the issues and merge requests show pages.

User Interface

The implementation consists of a modified UI for issues and merge requests show page:

  • the project's labels which aren't selected are displayed in a dropdown between Asignee and Milestone
  • the selected labels are shown underneath the issue/merge request box. They can be removed from there using the remove image which is contained in the left area of the label

Screenshot before: before-issue-page Screenshot after: after-issue-page2 Small screen: small-screen

Implementation

  • selecting a label from dropdown will add it to the issue/merge request through Javascript and the updated label's list will be shown underneath the issue/merge request box
  • in order to remove a label, a backend modification was required. The partial created for these labels contains two links: the first removes the label and the second has the basic functionality – to filter by label.

Testing

A Spinach feature was written to test the functionality for the issue, given the fact that it is similar to the merge request functionality.

Merge request reports

Loading