Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timescales being dropped? #199

Open
jonhusson opened this issue Dec 22, 2017 · 1 comment
Open

timescales being dropped? #199

jonhusson opened this issue Dec 22, 2017 · 1 comment

Comments

@jonhusson
Copy link
Contributor

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
Copy link
Member

cambro commented Dec 22, 2017

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants