Feature #18560
closed
Vocabulary picking improvements
Added by Peter Amstutz about 3 years ago.
Updated almost 3 years ago.
Estimated time:
(Total: 0.00 h)
Release relationship:
Auto
Description
When setting properties, the value list can be very large. Suggested improvements:
- In the full list, only show the first (preferred) synonym for each id
- In the search, show the format "Preferred (synonym)" when the partial match is on the synonym
- When there are multiple matches, it should only include a given id in the list once
- Description updated (diff)
- Related to Story #17454: Vocabulary checking of properties by API server/controller added
- Target version set to 2022-02-02 sprint
- Assigned To set to Lucas Di Pentima
- Target version changed from 2022-02-02 sprint to 2022-02-16 sprint
- Status changed from New to In Progress
Updates at arvados-workbench2|1422847e - branch 18560-wb2-vocabulary-picking
Test run:
In the end, this was super easy to implement thanks to the feature-full component <Autocomplete>
that already supports custom suggestion rendering.
I've added a couple of vocabulary query functions to retrieve the preferred terms for keys and values so that the fields use those to render the suggestion list.
For manual testing I recommend using arvbox because ce8i5
doesn't have any vocabulary configured.
Updates at arvados-workbench2|1e771e80
Test run:
- Refactors the vocabulary querying and suggestion rendering code so that only the synonyms that match the user's input are shown.
- Updates tests.
- Target version changed from 2022-02-16 sprint to 2022-03-02 sprint
- Status changed from In Progress to Resolved
Also available in: Atom
PDF