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

Remove monthly_supporter from user endpoints except users/me #479

Open
2 tasks
kueda opened this issue Nov 25, 2024 · 4 comments
Open
2 tasks

Remove monthly_supporter from user endpoints except users/me #479

kueda opened this issue Nov 25, 2024 · 4 comments
Labels

Comments

@kueda
Copy link
Member

kueda commented Nov 25, 2024

Currently we're including the monthly_supporter attribute at https://api.inaturalist.org/v2/users/1?fields=all (and maybe at other endpoints?). That describes whether the user is a monthly supporter, but we also have an opt-in preference to control whether this information is displayed, implying that it's at least somewhat secret. So I suggest we

  • Remove monthly_supporter from all endpoints other than users/me
  • Add monthly_supporter_badge to GET /users/:id that is the value or user.prefers_monthly_supporter_badge && user.monthly_supporter

The goal is for clients like iNat Next to show a badge for people who are donors and want to show it.

@kvangork
Copy link

@kueda Will our existing apps cleanly handle monthly_supporter disappearing from responses?
If not, or if we're unsure how other code will react, we could leave it in place but change the response value so that it returns the true status if :id == me but otherwise respects the logic you proposed for the monthly_supporter_badge

@kueda
Copy link
Member Author

kueda commented Nov 25, 2024

@budowski and @alexshepard will have a more informed opinion, but neither of the legacy app repos make direct reference to monthly_supporter.

@budowski
Copy link

Yeah, like @kueda said, Android doesn't make use of that property - we could leave that property on for id=me like @kvangork suggested, if we plan on displaying that badge inside the app somewhere.

@alexshepard
Copy link

We don't map this from json, so the legacy iOS app wont notice if it goes away.

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

4 participants