You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we store species/scientific/iucn/native for each ambassador, though this data is the same for all ambassadors of the same species. When lifespan was added (#83), this was abstracted/de-duplicated for species, but only this property.
Create a new species.ts file with a constant that has keys matching lifespans.ts, with each property having name (species from ambassadors.ts), scientific, iucn, native + lifespan properties defined.
Use a key-value relationship similar to what is done for enclosure (and soon class in #86), with a getSpecies getter for the data and isSpecies as a type-guard for the key.
This will require PRs into the website and extension as this will be a breaking change for how we access this data (now needing to use species via getSpecies, which will then return all the nested abstracted/de-duplicated data).
The text was updated successfully, but these errors were encountered:
Currently, we store
species
/scientific
/iucn
/native
for each ambassador, though this data is the same for all ambassadors of the same species. Whenlifespan
was added (#83), this was abstracted/de-duplicated for species, but only this property.Create a new
species.ts
file with a constant that has keys matchinglifespans.ts
, with each property havingname
(species
fromambassadors.ts
),scientific
,iucn
,native
+lifespan
properties defined.Use a key-value relationship similar to what is done for
enclosure
(and soonclass
in #86), with agetSpecies
getter for the data andisSpecies
as a type-guard for the key.This will require PRs into the website and extension as this will be a breaking change for how we access this data (now needing to use
species
viagetSpecies
, which will then return all the nested abstracted/de-duplicated data).The text was updated successfully, but these errors were encountered: