stable

Clone or download

Read-only

feat: call search endpoint

How to test: - Enable the feature flag: $ tuleap config-set feature_flag_history_and_search_in_modal 1 - Install a full text search backend and index your artifacts - Open an artifact (with an artifact link field) in the artifact modal - When you choose any link type except for "Parent", when you type one or two characters, the list of recently viewed items is filtered - when you type 3 or more characters, a "Search results" section should appear. If your query matches artifacts, they are shown in the dropdown. Otherwise, you get an empty section. - when you switch link type or empty the search field, the section disappears from the dropdown. Note: errors are not handled yet, they will be handled on a next contribution. part of story #24971 [modal] search for artifacts Change-Id: I4fab5a5fbd89ce9fdae00c3a6f63d4a109b52f70

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/ArtifactCrossReferenceProxy.test.ts +19 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/LinkableArtifactProxy.test.ts +31 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/LinkedArtifactProxy.test.ts +1 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.test.ts +42 −30 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.ts +15 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/ArtifactLinkSelectorAutoCompleter.test.ts +49 −30 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/ArtifactLinkSelectorAutoCompleter.ts +22 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkFieldController.test.ts +3 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkedArtifactTemplate.test.ts +3 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/NewLinkTemplate.test.ts +3 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/SearchResultsGroup.test.ts +28 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/SearchResultsGroup.ts +24 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/TypeSelectorTemplate.test.ts +3 −1 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/SearchArtifacts.ts +26 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +2 −1 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/SearchArtifactsStub.ts +33 −0 Go to diff View file