stable

Clone or download

Read-only

refactor: Display parent retrieval error in tlp-modal-feedback

part of story #24969 [modal] add and remove links (replace current artifact link) How to test: When there is an error while retrieving the future parent of an artifact, an error message will be shown in the modal feedback instead of at the top of the scrolled modal. You can test it by throwing a RestException in ArtifactsResource and trying to create a new sub-item (for example a Task on a User Story). Change-Id: Ic49b6c7fa87223d7eefa7a22cc22428891c6d496

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/package.json +1 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/pnpm-lock.yaml +6 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/po/fr_FR.po +4 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.test.ts +25 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.ts +11 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/FaultFeedbackPresenter.test.ts +9 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/FaultFeedbackPresenter.ts +13 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/ParentFeedbackController.test.ts +26 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/ParentFeedbackController.ts +16 −7 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/RetrieveArtifact.ts +3 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkRetrievalFault.ts +0 −3 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/parent/NoParentFault.ts +25 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/parent/ParentRetrievalFault.ts +25 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/parent/ParentRetriever.test.ts +11 −7 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/parent/ParentRetriever.ts +10 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/parent/RetrieveParent.ts +3 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/gettext-catalog.ts +2 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/rest/rest-service.ts +4 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +1 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrieveArtifactStub.ts +8 −1 Go to diff View file