stable
Clone or download
Read-only
part of story #24969 [modal] add and remove links without types Please note: - The REST endpoint is not designed to delete reversed links yet. Hence, I have decided to remove the [mark for removal] buttons from the rows having links with a reversed direction. How to test: --> Links with and without types are deleted --> Reversed links are left untouched Change-Id: Ib5a1047be6bd5eda9b07ba34d8d3d7561162c9a9
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.test.ts | +3 | −3 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.test.ts | +32 | −12 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.ts | +9 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/FormattedLinkArtifactFactory.ts | +28 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkFieldValueFormat.ts | +28 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkFieldValueFormatter.test.ts | +84 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkFieldValueFormatter.ts | +51 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkedArtifact.ts | +2 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js | +8 | −1 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.test.js | +10 | −3 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/validate-artifact-field-value.js | +10 | −2 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/tests/stubs/LinkTypeStub.ts | +33 | −0 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/tests/stubs/LinkedArtifactStub.ts | +16 | −2 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/tests/stubs/VerifyLinkIsMarkedForRemovalStub.ts | +2 | −2 | Go to diff View file |