stable
Clone or download
Read-only
No functional change expected in the artifact link field. It still shows the list of available link types with only "untyped", "parent" and "child" types. The UI adapter should not know about REST representations. It is the job of the REST adapter. Thus, parsing the REST representation of link types is moved to the REST adapter. It builds domain objects, that the UI adapter displays as HTML. part of story #24970 [modal] select type for links Change-Id: I7cf2d9af8afe45f9bc3b2585c5c1ef053ffa5a44
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/fields/link-field/LinkTypesCollector.test.ts | +48 | −0 | Go to diff View file |
R | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/AllowedLinksTypesCollection.ts | Go to diff View file | ||
D | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/AllowedLinksTypesCollection.test.ts | +0 | −70 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/CollectionOfAllowedLinksTypesPresenters.test.ts | +3 | −12 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/CollectionOfAllowedLinksTypesPresenters.ts | +5 | −18 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkField.test.ts | +4 | −17 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkFieldController.test.ts | +3 | −14 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkFieldController.ts | +2 | −2 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkedArtifactTemplate.test.ts | +2 | −2 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/NewLinkTemplate.test.ts | +4 | −11 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/TypeSelectorTemplate.test.ts | +4 | −16 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/LinkTypesCollection.test.ts | +47 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/LinkTypesCollection.ts | +32 | −0 | Go to diff View file |
R | plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/CollectAllowedLinksTypes.ts | Go to diff View file | ||
M | plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js | +2 | −2 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/tests/stubs/LinkTypeStub.ts | +7 | −1 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/tests/stubs/LinkTypesCollectionStub.ts | +26 | −0 | Go to diff View file |
A | plugins/tracker/scripts/lib/artifact-modal/tests/stubs/LinkTypesPairStub.ts | +33 | −0 | Go to diff View file |