wildlife-dynamics / ecoscope

Conservation data analytics
https://ecoscope.io
BSD 3-Clause "New" or "Revised" License
22 stars 9 forks source link

Generate value -> display remap dictionary from event_type schema #190

Closed walljcg closed 2 months ago

walljcg commented 3 months ago

We want to be able to create a dictionary for mapping values to display values by reading the json schema of an ER event type. Will require querying the Json Schema for a particular EventType through the ER API. This functionality should extend the ecoscope ER_IO client.

atmorling commented 3 months ago

Turns out we get display names from activity/events/eventtypes (which we already wrap as get_event_types()) without having to query specifically for the schema of each EventType

We will have to query schema for the display values of fields within each event type

atmorling commented 3 months ago

@walljcg is the main story behind this task to provide the display names to the configuration dialog within ecoscope-web?

atmorling commented 2 months ago

This has been done in the async client #198