•  
     
    story #10498 Add labels on pull requests
Summary
user
Add labels on pull requests
Empty
  • Labels are autocompleted (using select2 like in artifact-modal before TLP migration)

  • Move label selector outside angular view (if it doesn’t work, keep it under PR description)

  • Autocompleter in angular

  • REST routes:

    • GET /projects/:id/labels

    • GET /pullrequests/:id/labels

    • PATCH /pullrequests/:id/labels

      • { add : [label_name, …], remove: [label_name…] }

  • DB tables:

    • label

    • project_label

    • pullrequest_label

  • I can add/remove labels only if I can edit pull request

Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#10498
Benjamin Dauton (bdauton_enalean)
2017-09-06 13:10
2017-07-26 11:34
4494

References
Referencing story #10498

Git commit

tuleap/tuleap/stable

First step for item labels in Tuleap 7eddd0716c
Replace jQuery by tlp.get ed235aea31
Fix badge colors override 75fe3bb353
Remove unneeded margin top above git reference ec1d305dc1
GET /projects/:id/labels a129d4aeaa
Project labels management 4d5ea357bf
Use Select2 to display labels ed80ffa0b1
Do not create empty labels 1173a1cf98
Translate placeholder "Add labels" d22124d3ff
Display remove icon on mouseover on label 1f708b33ca
Display labels in homepage of pull requests cfd4b16dff
Refactoring: extract getReadable/getWriteablePullRequest 6a4f8ca143
Raise 400 if users tries to create an empty label a97ab77252
Edit labels of a pull request 34392d0dfc
REST routes to add/remove labels 8d7526cf40
Slightly revamp pull request to display labels 6108494635
Display labels for a pull request 4e5755efd3

Follow-ups