Comments (2)
Seems like an issue with the API - for example:
Retrieving page number 5 of the observers list for Australia+Fungi:
https://api.inaturalist.org/v1/observations/observers?page=5&per_page=30&taxon_id=47170&place_id=6744&quality_grade=needs_id,research&order_by=created_at&order=desc
Same call, just with page number 6:
https://api.inaturalist.org/v1/observations/observers?page=6&per_page=30&taxon_id=47170&place_id=6744&quality_grade=needs_id,research&order_by=created_at&order=desc
Notice that in both responses, for example - the user named "wazzza" appears (with obseration_count = 315).
@pleary - what do you think?
from inaturalistandroid.
Observer counts will unfortunately always be approximate, and may vary from request to request (see this section and the following sections for more information from the Elasticsearch documentation).
We can set some parameters like shard_size
to help counts be more accurate. I've updated the shard_size
we use when the requests is for results up to 500 deep in the result set, and that appears to have helped this case - userwazzza
is no longer appearing in that second URL. When making multiple requests for pagination, there is unfortunately always a chance that some results might get repeated in different result sets. One way to avoid repeats is to request the maximum number of observers (500) in a single request. Another would be do code around it on the client side - suppressing potential duplicates in later pages.
from inaturalistandroid.
Related Issues (20)
- Can no longer access phone's Gallery app when importing photos
- Allow iNat to only access one's approximate location prevents the app from obtaining any location
- JSONException in ObservationViewerFragment$PhotosViewPagerAdapter.instantiateItem HOT 1
- Long pressing IDs or comments made by others brings up options menu
- News tab uses last-modified date to sort journal posts
- Consistent location icon for obscured and public locations HOT 2
- JSONException in ObservationViewerFragment
- NullPointerException in ObservationViewerFragment
- ActivityNotFoundException in ObservationEditor.takePhoto
- Can't import sounds made with Recorder app HOT 1
- Accomodate new subject DQA flag HOT 2
- Android banner and modal for unconfirmed users HOT 7
- Suggestions compare screen doesn't show taxon photos HOT 1
- Replace all instances of Whitney with Roboto
- ArrayIndexOutOfBoundsException in TaxonActivity.refreshSeasonalityChart
- Suggest ID infinite loop HOT 2
- App available in F-Droid HOT 2
- App crashes if you add an ID to an unidentified observation where the observer has opted out of community ID HOT 1
- Obscure date/time for private/obscured obs the user does not have access to
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inaturalistandroid.