Ignore outdated locations
marcoow opened this issue · comments
There are a bunch of locations that do not have any fresh data, e.g. "lastUpdated": "2017-07-20T19:00:00.000Z"
. We should ignore all locations that we get from OpenAQ that have not been updated in at least the past 7 days.
It's better to not show locations than showing them but then having no data.
@marcoow Do you want to store them in our db and not return them or not store them in the first place?
I would not store them in the DB at all and filter them in the OpenAQ source as otherwise we'd have to filter out those locations every team we read anything from the DB.
Actually that will also avoid us from "syncing" the location with OpenAQ if we return it directly from our db (as we don't need to update the last_updated
attr every time)