Project

General

Profile

Actions

Idea #23003

open

Vocabulary helper convert_to_labels raises strict exception on undefined properties

Added by Moritz Gilsdorf 9 months ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
-
Start date:
Due date:
Story points:
-

Description

Collections contain the sticky property 'responsible_person_uuid', amongst others. I noticed that the convenient function convert_to_labels does not like that. So in order to convert these properties to labels I need to clean this up first,

arvados.vocabulary.VocabularyKeyError: key 'responsible_person_uuid' not found in vocabulary

Is this intended? Any suggestion how to solve this?

Actions #1

Updated by Brett Smith 9 months ago

  • Category set to SDKs

Moritz,

The current function is explicitly programmed to do this, yes. We could consider adding an arguments that specifies how to handle unknown keys, akin to the errors argument of bytes.decode.

Actions #2

Updated by Brett Smith 9 months ago

  • Tracker changed from Bug to Idea
Actions #3

Updated by Brett Smith 7 months ago

  • Subject changed from Vocabulary helper convert_to_labels breaks on presence of not vocabulary controlled properties to Vocabulary helper convert_to_labels raises strict exception on undefined properties
Actions

Also available in: Atom PDF