mozilla-sensorweb / sensorweb-website

0 stars 2 forks source link

use ordering when fetching observations #22

Closed julienw closed 7 years ago

julienw commented 7 years ago

When we have a lot of observations for a specific stream (for example the one for @lissyx), currently we don't get the latest observations properly.

The cause is simple :) we need to order the observations. This is done with an $orderby parameter.

here is an example: https://api.bewrosnes.org/v1.0/Datastreams(85)/Observations?$orderby=phenomenonTime%20desc

julienw commented 7 years ago

Fixed by https://github.com/mozilla-sensorweb/sensorweb-website/commit/852007247b17b2cc5e490140314188025acb0340