stable

Clone or download

Read-only

refactor: TuleapAPIClient uses only fetch-result

part of story #24969 [modal] add and remove links (replace current artifact link) No functional change expected: when there is an API issue or network issue during fetch of already linked artifacts, a message will be shown in the modal feebdack section. Change-Id: I6ffceef8ba0614f81f071a1ae2cfd06265a86021

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.test.ts +28 −39 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.ts +17 −31 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.ts +11 −11 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinksRetriever.test.ts +30 −41 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinksRetriever.ts +20 −21 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/RetrieveAllLinkedArtifacts.ts +2 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/RetrieveLinkTypes.ts +5 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/RetrieveLinkedArtifactsByType.ts +3 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrieveAllLinkedArtifactsStub.ts +5 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrieveLinkTypesStub.ts +9 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrieveLinkedArtifactsByTypeStub.ts +9 −7 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/webpack.common.js +3 −0 Go to diff View file