stable

Clone or download

Read-only

Replace restangular by fetch

Part of request #16579 Get rid of restangular in Kanban app No functional change expected. Things to try: - Edit kanban modal (add column, etc.) - Expand / collapse of columns - Drag and drop between columns - Filtering a kanban with a report - Show detailed / small cards - Add a card Implementation notes: We cannot mix async/await with angularJS promises. As long as the external API uses angularJS promises, our code MUST use .then() and .catch(). Otherwise, it never works in jest tests (we reach timeout). Change-Id: Idd21f30d3bf0bf4970fb18490509a8e6f40ab1cd

Modified Files

Name
M plugins/agiledashboard/scripts/kanban/package-lock.json +0 −8 Go to diff View file
M plugins/agiledashboard/scripts/kanban/package.json +0 −1 Go to diff View file
D plugins/agiledashboard/scripts/kanban/src/app/app-config.js +0 −11 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/app-kanban-controller.js +33 −12 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/app-kanban-controller.test.js +36 −24 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/app.js +0 −4 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/edit-kanban/edit-kanban-controller.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/edit-kanban/edit-kanban-controller.test.js +71 −1 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/error-modal/rest-error-service.js +25 −7 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/error-modal/rest-error-service.test.js +32 −22 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/jwt/jwt-service.js +5 −13 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/jwt/jwt-service.test.js +18 −5 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/kanban-item/kanban-item-rest-service.js +27 −26 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/kanban-item/kanban-item-rest-service.test.js +77 −47 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/kanban-service.js +170 −205 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/kanban-service.test.js +297 −687 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/user-preferences/user-preferences-service.js +10 −6 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/user-preferences/user-preferences-service.test.js +25 −10 Go to diff View file
M plugins/agiledashboard/scripts/kanban/tests/jest.setup.js +0 −3 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/planner-view/planner-view-component.js +1 −1 Go to diff View file
R plugins/agiledashboard/scripts/planning-v2/src/app/rest-error/error-message-helper.test.ts Go to diff View file
R plugins/agiledashboard/scripts/planning-v2/src/app/rest-error/error-message-helper.ts Go to diff View file
A plugins/agiledashboard/scripts/shared/jest.config.js +25 −0 Go to diff View file
M plugins/agiledashboard/tests/e2e/cypress/cypress/integration/kanban.spec.ts +8 −9 Go to diff View file
M src/themes/tlp/src/js/fetch-wrapper.test.ts +88 −233 Go to diff View file
M src/themes/tlp/src/js/fetch-wrapper.ts +22 −2 Go to diff View file
M src/www/tlp-doc/resources/fetch/del/example.html +4 −5 Go to diff View file
A src/www/tlp-doc/resources/fetch/head/doc.html +39 −0 Go to diff View file
A src/www/tlp-doc/resources/fetch/head/example.html +14 −0 Go to diff View file
A src/www/tlp-doc/resources/fetch/head/manifest.json +4 −0 Go to diff View file
M src/www/tlp-doc/resources/fetch/manifest.json +2 −1 Go to diff View file
M src/www/tlp-doc/resources/fetch/put/example.html +1 −1 Go to diff View file
M src/www/tlp-doc/resources/fetch/recursive-get/example.html +1 −1 Go to diff View file