Idea #15069
closed[Workbench 2] Extend search UI to support vocabulary IDs as well as text
Added by Tom Morris over 5 years ago. Updated about 5 years ago.
Description
See parent ticket for description of modifications needed. This uses the existing APIs and does multiple searches from the client.
Updated by Tom Morris over 5 years ago
- Tracker changed from Task to Idea
- Description updated (diff)
Updated by Tom Morris over 5 years ago
- Blocks Idea #14151: Extend vocabulary support for properties to support strong identifiers and multiple labels added
Updated by Tom Morris over 5 years ago
- Target version changed from To Be Groomed to Arvados Future Sprints
Updated by Tom Morris over 5 years ago
- Subject changed from Extend search UI to support vocabulary IDs as well as text to [Workbench 2] Extend search UI to support vocabulary IDs as well as text
Updated by Eric Biagiotti over 5 years ago
- Update WB2 to use the new vocabulary format.
- Text search for properties is available via the search bar at the top. Label search is available in the advanced search view, which populates the search bar automatically.
- When a user starts typing in the advanced search label entries, present an autocomplete list. Display preferred label first.
- When adding a label to a resource, use the same autocomplete view as the advanced search.
Updated by Tom Morris over 5 years ago
- Target version changed from Arvados Future Sprints to 2019-09-25 Sprint
Updated by Lucas Di Pentima over 5 years ago
- Assigned To set to Lucas Di Pentima
Updated by Lucas Di Pentima about 5 years ago
- Target version changed from 2019-09-25 Sprint to 2019-10-09 Sprint
Updated by Tom Morris about 5 years ago
- Target version changed from 2019-10-09 Sprint to 2019-10-23 Sprint
Updated by Tom Morris about 5 years ago
- Target version changed from 2019-10-23 Sprint to 2019-11-06 Sprint
Updated by Tom Morris about 5 years ago
- Target version changed from 2019-11-06 Sprint to 2019-11-20 Sprint
Updated by Lucas Di Pentima about 5 years ago
- Assigned To set to Lucas Di Pentima
Updated by Lucas Di Pentima about 5 years ago
- Category set to Workbench2
- Status changed from New to In Progress
- Release set to 22
Updated by Lucas Di Pentima about 5 years ago
Updates at commit:366d290 - branch 15069-tag-searching-by-ids
(WB2 repo)
The advanced search dialog now autocompletes properties' keys/values using the new vocabulary, and creates the correct search query string. Also does the right thing when arriving from a bookmarked search link, it correctly renders the property "chips" when the advanced search dialog is opened.
Questions for the reviewer¶
- I’m not sure why I had use
<any>
on 'const connectVocabularyAndPropertyKey = compose<any>(…)
' atsrc/views-components/resource-properties-form/property-value-field.tsx
to be able to pass my own prop to the component. This surely isn’t the best solution. Maybe related to this? https://github.com/DefinitelyTyped/DefinitelyTyped/issues/16990#issuecomment-472885681 (I'm not yet completely used to work with generics) - The advanced search UI has a preexisting minor bug: when the user adds properties criteria on the search, it keeps adding those properties even if the user enter the same property key twice. The search query string is correctly constructed, though. Should this bug be a blocker for this story? I've been trying to fix it but it doesn't seem trivial for now.
How to test¶
Just pointing the branch to 4xphq
should work, as it would load the new vocabulary example from the branch itself.
Updated by Lucas Di Pentima about 5 years ago
I've realized that I was committing with my personal email address. Deleted the branch and re-pushed a corrected one at c33dec5 (wb2 repo)
Updated by Lucas Di Pentima about 5 years ago
Updates at 2a700288 (wb2 repo)
- Fixes the preexisting bug mentioned on note-17
Updated by Peter Amstutz about 5 years ago
(deleted comment, not relevant to this branch)
Updated by Peter Amstutz about 5 years ago
I don't know if this is in scope, but if I just put "dog" into the search, it doesn't find anything. However, I can search for "IDVALANIMALS2" and that works. It would be nice if the search recognized "dog" and performed an additional search for "IDVALANIMALS2". Perhaps this is blocked on #15070 ?
Updated by Peter Amstutz about 5 years ago
Related, this seems to assume that all properties have migrated to identifiers, because if you search for "Animal: Dog" then the actual search is has:"IDTAGANIMALS":"IDVALANIMALS2", and you cannot easily search for something that has properties with the literal text "Animal: Dog".
Also, the search history stores (and displays) 'has:"IDTAGANIMALS":"IDVALANIMALS2"' which is not very meaningful to a human going back and choosing a past search.
Updated by Peter Amstutz about 5 years ago
It's also possible to have {"IDTAGANIMALS":"IDVALANIMALS2", "Animal: Dog"} for properties on a collection, they will appear the same in the property chips on the collection page.
Updated by Lucas Di Pentima about 5 years ago
- Target version changed from 2019-11-20 Sprint to 2019-12-04 Sprint
Updated by Peter Amstutz about 5 years ago
- Target version deleted (
2019-12-04 Sprint)
Lucas Di Pentima wrote:
Updates at commit:366d290 - branch
15069-tag-searching-by-ids
(WB2 repo)The advanced search dialog now autocompletes properties' keys/values using the new vocabulary, and creates the correct search query string. Also does the right thing when arriving from a bookmarked search link, it correctly renders the property "chips" when the advanced search dialog is opened.
Questions for the reviewer¶
- I’m not sure why I had use
<any>
on 'const connectVocabularyAndPropertyKey = compose<any>(…)
' atsrc/views-components/resource-properties-form/property-value-field.tsx
to be able to pass my own prop to the component. This surely isn’t the best solution. Maybe related to this? https://github.com/DefinitelyTyped/DefinitelyTyped/issues/16990#issuecomment-472885681 (I'm not yet completely used to work with generics)
I think I figured this one out: 17963753e57340121942857300c41c7852275c4b
As we discussed at the sprint meeting, since it requires API server support for OR queries and there's also some differences of opinion about what the right search UI would be, the comment on note-21 about making free text search aware of identifiers/aliases is out of scope.
Rest LGTM, thanks!
Updated by Lucas Di Pentima about 5 years ago
- Status changed from In Progress to Resolved