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

Restore constraints on note id parameter, simplify tests #4746

Merged

Conversation

AntonKhorev
Copy link
Contributor

Elements, changesets, notes had constraints in their id parameter in routes. 9748ce3 removed this constraint for notes for unknown reason. Without this constraint notes controller needs different tests. The part of "browse_check" that checks negative ids had to be commented out.

This PR restores the constraint which allows to use the same "browse_check" as for every other entity formerly handled by browse controller.

@tomhughes
Copy link
Member

Not sure what was going on with that previous change, but this looks good to me. Thanks.

@tomhughes tomhughes merged commit 59071bf into openstreetmap:master May 2, 2024
20 checks passed
@AntonKhorev AntonKhorev deleted the restore-note-id-constraints branch May 5, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants