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

Endpoint: Value for the user submission search radius #1233

Closed
RyanTG opened this issue Feb 13, 2020 · 1 comment
Closed

Endpoint: Value for the user submission search radius #1233

RyanTG opened this issue Feb 13, 2020 · 1 comment

Comments

@RyanTG
Copy link
Collaborator

RyanTG commented Feb 13, 2020

In the app, we would like to offer options for the "Recent Activity" radius. Right now it is baked in at 30 miles.

We can discuss the preferred way to do that. One option might be to bake in 3 options: 30, 100, 150. Or something. Another option could be an endpoint where you can enter any value. But my concern there is that this would create an opportunity where someone could make giant requests.

https://github.com/scottwainstock/pbm/blob/2106c90f6d8be428830ea63efbd4eb6b506ed7bb/app/controllers/api/v1/user_submissions_controller.rb#L20

cc @bpoore

@RyanTG
Copy link
Collaborator Author

RyanTG commented Sep 28, 2022

Duh, realized that you can set "max_distance" to whatever.

@RyanTG RyanTG closed this as completed Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant