Closed tomsaleeba closed 2 years ago
The API does allow searching by UUID, it's just not documented. This query:
https://api.inaturalist.org/v1/observations?user_login=tomsaleeba&order=desc&order_by=created_at&uuid=f98e8e99-7991-406d-b4d3-fa13c3bb1a4d,2b541ae4-21a3-4e19-8ff9-e1ef2598c8b1
...only gets the records for the two listed UUIDs.
Solved in the rewrite happening right now.
We currently pull all of the user's observations from iNat. As a user gets more and more observations, the size of this data will only increase. The memory usage isn't that much of a concern, although it's not great. The worry is that we store this data in Vuex and every time a mutation is comited, the whole store is saved to localStorage. In my test account, I have 750kb of remote obs data and having to continually serialise and save that is going to take its toll.
This is where we get the remote obs: https://github.com/ternandsparrow/wild-orchid-watch-pwa/blob/6da895eb65a5f5bcfa97e3fc8f4d87a1c17d1d19/src/store/obs.js#L123
Ideally we want to store as little as possible. The questions we need to address are:
uuid
andinatId
?