Project

General

Profile

Actions

Feature #18810

open

PySDK API Client wrapper methods that automatically translate properties using a vocabulary

Added by Lucas Di Pentima 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

This story is a follow-up to #18574.

It may be helpful to have a way to avoid the PySDK developer explicitly translating properties from identifiers to human-readable labels and vice versa.
It would probably be necessary to make this feature disabled by default (to be backward compatible) and, when enabled, provide a way to override it on a call-by-call basis.

For example, the following call:

api.collections().get(uuid=xxxxxx).execute()
{
uuid: xxxxxx,
...
properties: { 'Creature': 'Human', ... }
}

... would return an object whose properties map contains human-readable labels.
For the update/create cases, the calls would allow human-readable labels to get translated to their identifiers just before sending them to the API server.


Related issues

Related to Arvados - Feature #18574: Helper methods for working with vocabulariesResolvedLucas Di Pentima03/01/2022

Actions
Actions #1

Updated by Lucas Di Pentima 6 months ago

  • Related to Task #18776: Review 18574-pysdk-vocabulary-support added
Actions #2

Updated by Lucas Di Pentima 6 months ago

  • Related to deleted (Task #18776: Review 18574-pysdk-vocabulary-support)
Actions #3

Updated by Lucas Di Pentima 6 months ago

  • Related to Feature #18574: Helper methods for working with vocabularies added
Actions #4

Updated by Peter Amstutz 6 months ago

  • Release deleted (46)
  • Target version deleted (2022-03-16 sprint)
Actions

Also available in: Atom PDF