UW-Macrostrat / macrostrat-api

The API for SCIENCE
3 stars 1 forks source link

timescales being dropped? #199

Open jonhusson opened 6 years ago

jonhusson commented 6 years ago

is there a reason why timescale associations to intervals are dropped when you query by timescale name?

i.e., the Kimmeridgian is belongs to the international age timescale

https://macrostrat.org/api/defs/intervals?name=Kimmeridgian

but this is lost when you query by one of the other timescales it is a part of:

https://macrostrat.org/api/defs/intervals?timescale_id=17

cambro commented 6 years ago

Interesting. I guess one could image that this is the way it is supposed to work, but in principle there is no reason why we shouldn't return all timescales that an interval is part of instead of just the one that happens to be requested (i.e., the response would be the same for all versions of /intervals when it comes to reporting timescales to which intervals belong).