stable

Clone or download

Read-only

feat: Handle search errors

How to test: - Enable the feature flag: $ tuleap config-set feature_flag_history_and_search_in_modal 1 - If there is no full text search backend (or it is deactivated in siteadmin), the route will respond 404 but no error is shown. There is no "Search results" section. - add a `throw new RestException()` at SearchResource.php L63 - If there is an active backend, when you type 3 or more characters, then an error feedback will be shown. part of story #24971 [modal] search for artifacts Change-Id: I4a52c402d475f5fd0f6f49f25a77cd741e9bc48e

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/po/fr_FR.po +4 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/po/pt_BR.po +3 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/FaultFeedbackPresenter.test.ts +2 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/feedback/FaultFeedbackPresenter.ts +6 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/ArtifactLinkSelectorAutoCompleter.test.ts +25 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/ArtifactLinkSelectorAutoCompleter.ts +15 −7 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field/SearchArtifactsFault.ts +25 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/gettext-catalog.ts +2 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tests/stubs/SearchArtifactsStub.ts +6 −1 Go to diff View file