Skip to content

Lookup table with labels and values for sectors and countries for the create_asset method #59

@LadaRudnitckaia

Description

@LadaRudnitckaia

Currently if a user wants to specify country and sector when creating an asset with the Kobo$create_asset method (#40), he/she needs to provide both parameters as lists with two values value and label. It can be confusing because:

  1. It would be more intuitive to provide both sector and country as strings
  2. It's not clear what is the difference between label and value
  3. It might be not clear that an exhaustive list of labels and values exists

Current solution: description of the parameters in the method's documentation says that a list with value and label is expected and a link to the corresponding values and labels is provided.

More convenient way could be to parse this static list and create a lookup table. Using this table, we could simplify the input of these two parameters for a user.

Potential issues: the lookup table should be updated on some regular basis and parsed. Some meaningful and helpful error message should be returned if the input value is not in the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions