From: Lucas Di Pentima Date: Wed, 19 Feb 2020 21:31:58 +0000 (-0300) Subject: 15781: Replaces 'like' operator with '=' on fallback property matches. X-Git-Tag: 2.1.0~39^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/5b0a7e3709bac2d69100ec87a46f37846aba7d14 15781: Replaces 'like' operator with '=' on fallback property matches. Also, add container requests to the search. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/src/store/search-bar/search-bar-actions.ts b/src/store/search-bar/search-bar-actions.ts index 8909ceff..d9dc0a64 100644 --- a/src/store/search-bar/search-bar-actions.ts +++ b/src/store/search-bar/search-bar-actions.ts @@ -354,12 +354,14 @@ export const queryToFilters = (query: string, apiRevision: number) => { if (p.value) { if (apiRevision < 20200212) { filter - .addLike(`properties.${p.key}`, p.value, GroupContentsResourcePrefix.PROJECT) - .addLike(`properties.${p.key}`, p.value, GroupContentsResourcePrefix.COLLECTION); + .addEqual(`properties.${p.key}`, p.value, GroupContentsResourcePrefix.PROJECT) + .addEqual(`properties.${p.key}`, p.value, GroupContentsResourcePrefix.COLLECTION) + .addEqual(`properties.${p.key}`, p.value, GroupContentsResourcePrefix.PROCESS); } else { filter .addContains(`properties.${p.key}`, p.value, GroupContentsResourcePrefix.PROJECT) - .addContains(`properties.${p.key}`, p.value, GroupContentsResourcePrefix.COLLECTION); + .addContains(`properties.${p.key}`, p.value, GroupContentsResourcePrefix.COLLECTION) + .addContains(`properties.${p.key}`, p.value, GroupContentsResourcePrefix.PROCESS); } } filter.addExists(p.key);