stable

Clone or download

Read-only

Update ES6 modal to also query the parent when given at creation

Closes story #10738 have the list of parents when I edit a backlog item How to test: - To test artifact creation with a predefined parent, edit TTM and add a parent_artifact_id to a showCreation() call - when you create an artifact as a child, then you won't be able to choose a parent. The artifact will be queried and shown as a badge and xref in the field. - when you edit an artifact with existing links, they will be shown in the text input where you enter artifact ids. Choosing a parent should not erase pre-existing artifact links. Change-Id: I8f4051b8b70b31fd97d094b19347f48ec4ce3f1b

Modified Files

Name
M plugins/tracker/www/scripts/angular-artifact-modal/po/fr.po +3 −3 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/po/template.pot +1 −1 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/model/field-values-service.js +14 −9 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/model/field-values-service.spec.js +46 −46 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-controller.js +24 −26 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/link-field/link-field-controller.js +16 −14 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/link-field/link-field-controller.spec.js +17 −3 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/link-field/link-field-directive.js +7 −6 Go to diff View file
A plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/link-field/link-field-initializer.js +21 −0 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-service.js +14 −14 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-service.spec.js +40 −50 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal.tpl.html +4 −3 Go to diff View file