From 1aca9929ab2948ce03a275cc6708524abcaedcd0 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Tue, 15 Nov 2022 09:41:09 -0500 Subject: [PATCH 1/2] Adds support for exact name searching against related fields to the ui --- awx/ui/src/components/Search/RelatedLookupTypeInput.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/awx/ui/src/components/Search/RelatedLookupTypeInput.js b/awx/ui/src/components/Search/RelatedLookupTypeInput.js index effbc4199a..008c83164b 100644 --- a/awx/ui/src/components/Search/RelatedLookupTypeInput.js +++ b/awx/ui/src/components/Search/RelatedLookupTypeInput.js @@ -31,6 +31,12 @@ function RelatedLookupTypeInput({ value="name__icontains" description={t`Fuzzy search on name field.`} /> + Date: Tue, 3 Jan 2023 11:38:44 -0800 Subject: [PATCH 2/2] update test --- awx/ui/src/components/Search/AdvancedSearch.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/src/components/Search/AdvancedSearch.test.js b/awx/ui/src/components/Search/AdvancedSearch.test.js index 5050ff63af..8258ef6812 100644 --- a/awx/ui/src/components/Search/AdvancedSearch.test.js +++ b/awx/ui/src/components/Search/AdvancedSearch.test.js @@ -420,7 +420,7 @@ describe('', () => { const selectOptions = wrapper.find( 'Select[aria-label="Related search type"] SelectOption' ); - expect(selectOptions).toHaveLength(2); + expect(selectOptions).toHaveLength(3); expect( selectOptions.find('SelectOption[id="name-option-select"]').prop('value') ).toBe('name__icontains');