Project

General

Profile

Actions

Feature #18560

closed

Vocabulary picking improvements

Added by Peter Amstutz 7 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench2
Target version:
Start date:
02/10/2022
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Story points:
-
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

Subtasks 1 (0 open1 closed)

Task #18644: Review 18560-wb2-vocabulary-pickingResolvedPeter Amstutz02/10/2022

Actions

Related issues

Related to Arvados Epics - Story #17454: Vocabulary checking of properties by API server/controllerResolved10/01/202103/31/2022

Actions
Actions #1

Updated by Peter Amstutz 7 months ago

  • Description updated (diff)
Actions #2

Updated by Peter Amstutz 7 months ago

  • Related to Story #17454: Vocabulary checking of properties by API server/controller added
Actions #3

Updated by Lucas Di Pentima 5 months ago

  • Target version set to 2022-02-02 sprint
Actions #4

Updated by Peter Amstutz 5 months ago

  • Assigned To set to Lucas Di Pentima
Actions #5

Updated by Peter Amstutz 5 months ago

  • Target version changed from 2022-02-02 sprint to 2022-02-16 sprint
Actions #6

Updated by Lucas Di Pentima 5 months ago

  • Status changed from New to In Progress
Actions #7

Updated by Lucas Di Pentima 5 months ago

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.

Actions #8

Updated by Lucas Di Pentima 5 months ago

Updates at arvados-workbench2|c72cb99d
Test run:

Fixes unrelated flaky test that failed on the previous run.

Actions #9

Updated by Lucas Di Pentima 4 months ago

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.
Actions #10

Updated by Lucas Di Pentima 4 months ago

  • Target version changed from 2022-02-16 sprint to 2022-03-02 sprint
Actions #11

Updated by Peter Amstutz 4 months ago

This LGTM!

Actions #12

Updated by Lucas Di Pentima 4 months ago

  • Status changed from In Progress to Resolved
Actions #13

Updated by Peter Amstutz 4 months ago

  • Release set to 49
Actions

Also available in: Atom PDF