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

Fetching taxon with auth returns wrong establishment means #459

Open
kueda opened this issue Sep 20, 2024 · 0 comments
Open

Fetching taxon with auth returns wrong establishment means #459

kueda opened this issue Sep 20, 2024 · 0 comments
Assignees
Labels

Comments

@kueda
Copy link
Member

kueda commented Sep 20, 2024

When I (kueda) GET details for American Bullfrog, I always get the establishment_means for California, regardless of how I change my settings (e.g. change search place to British Columbia, or alter my name priorities). For example, when I do this:

curl -XGET \
  -H "Authorization: MY-JWT" \
  'https://api.inaturalist.org/v2/taxa/65979?fields=(establishment_means:(establishment_means:!t,place:(name:!t)))'

I get

{
    "total_results": 1,
    "page": 1,
    "per_page": 30,
    "results":
    [
        {
            "id": 65979,
            "establishment_means":
            {
                "establishment_means": "introduced",
                "place":
                {
                    "name": "California"
                }
            }
        }
    ]
}

This is also apparent on the website, where I always see "Introduced in California, US" at https://www.inaturalist.org/taxa/65979-Lithobates-catesbeianus.

In theory, I should be able to control what place I see the establishment means for. I suspect this is linked to the place_id attribute on User, which used to control name localization but doesn't ever since we moved to taxon name priorities. It might also have something to do with pagination, since bullfrog has a lot of listed taxa associated with it. I'm not sure what the best kind of control would be, maybe using the search_place_id.

@kueda kueda added the bugs label Sep 20, 2024
@kueda kueda added this to Web Sep 20, 2024
@kueda kueda moved this to Todo in Web Sep 20, 2024
@pleary pleary self-assigned this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants