stable

Clone or download

Read-only

refactor: split ParentArtifact type from Artifact

part of story #24969 [modal] add and remove links (replace current artifact link) No functional change expected: When you create a new sub-item (for example a new Story in an Epic in Planning view), the modal will keep fetching the parent and show an "alert" at the top like "The artifact will be linked to <title>". This refactoring aims to delete the generic "Artifact" type. We should use specialized types. Change-Id: If7d4c186928418565245096898a391bc511ff24f

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.test.ts +10 −8 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.ts +6 −6 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/ModalFeedback.test.ts +1 −6 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/ParentFeedbackController.test.ts +10 −14 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/ParentFeedbackController.ts +4 −7 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/ParentFeedbackPresenter.test.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/ParentFeedbackPresenter.ts +3 −3 Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/src/domain/RetrieveArtifact.ts +0 −30 Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/domain/parent/NoParentFault.ts Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/src/domain/parent/ParentRetriever.test.ts +0 −63 Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/src/domain/parent/ParentRetriever.ts +0 −39 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/parent/RetrieveParent.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +2 −3 Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrieveArtifactStub.ts Go to diff View file