stable

Clone or download

Read-only

Extract rest-service out of Angular JS

Part of request #11079 Migrate modal angular services to ES modules Rest-service is now an ES module. Rest error state (the error message shown in the modal) is a separate ES module too. We had to wrap all rest calls with $q.when(), otherwise AngularJS stops reacting Change-Id: Ia74a76c71e6468644149a52a3936d1ca89621597

Modified Files

Name
M plugins/tracker/www/scripts/angular-artifact-modal/src/index.spec.js +1 −0 Go to diff View file
A plugins/tracker/www/scripts/angular-artifact-modal/src/rest/rest-error-state.js +13 −0 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/rest/rest-service.js +164 −153 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/rest/rest-service.spec.js +94 −117 Go to diff View file
D plugins/tracker/www/scripts/angular-artifact-modal/src/tlp-mock.spec.js +0 −7 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-controller.js +15 −8 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-controller.spec.js +34 −30 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/file-field/file-field.js +5 −8 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/file-field/file-upload-service.js +14 −13 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/file-field/file-upload-service.spec.js +38 −37 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/link-field/link-field-controller.js +10 −7 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 +19 −13 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/link-field/link-field.js +1 −3 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/open-list-field/open-list-field.js +4 −7 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/open-list-field/users-open-list-field-controller.js +16 −23 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/open-list-field/users-open-list-field-controller.spec.js +22 −16 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-service.js +12 −8 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-service.spec.js +57 −47 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal.js +0 −2 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal.tpl.html +2 −2 Go to diff View file
M plugins/tracker/www/scripts/karma.conf.js +0 −1 Go to diff View file
M plugins/tracker/www/scripts/webpack.config.js +5 −2 Go to diff View file
A src/www/themes/common/tlp/mocks/index.js +66 −0 Go to diff View file
M src/www/themes/common/tlp/src/js/fetch-wrapper.js +0 −1 Go to diff View file
M tools/rpm/Makefile +2 −7 Go to diff View file