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

observations/species_counts not using trusted project logic? #291

Open
kueda opened this issue Jan 11, 2022 · 0 comments
Open

observations/species_counts not using trusted project logic? #291

kueda opened this issue Jan 11, 2022 · 0 comments
Labels

Comments

@kueda
Copy link
Member

kueda commented Jan 11, 2022

This has been reported but I have not tried to replicate this b/c... it's very hard to set up repro conditions for bugs with trusted projects, so that's the first hurdle here. Setting up test data manually will require making a collection project, turning on user trust, joining the project with another account and trusting the project, and using that other account to add an observation whose obscured coordinates are outside the project place boundary but whose true coordinates are inside the boundary, so the observation will appear to be in the project to project owners and curators, but outside to everyone else. The reported symptom is that observations like this appear at /observations when an owner searches for obs in the project, but the species count does not include those obs. I am exhausted just typing that.

The good news is that there are already some fixtures you can probably use to make a real test (check out this one for an example). The bad news is that that's the only good news.

Then you're probably going to want to look at ObservationQueryBuilder.placeFilterForUser

@kueda kueda added the bugs label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant