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

Respect multi-fetch limit when fetching elements for conflict resolution #2565

Merged
merged 1 commit into from
May 28, 2024

Conversation

simonpoole
Copy link
Collaborator

Multi-fetch API call URL lengths can easily exceed the maximum URL length. We currently limit the number of elements to 685, that should work with up to 12 digit ids, and simply loop to process all ids if more are required.

Note: this unifies and simplifies the code as the issue was already fixed for certain situations.

@simonpoole simonpoole force-pushed the always_respect_multi_fetch_limits branch 2 times, most recently from 6122ce1 to c1b97b8 Compare May 28, 2024 13:03
Multi-fetch API call URL lengths can easily exceed the maximum URL
length. We currently limit the number of elements to 200 (same value as
JOSM uses) and simply loop to process all ids if more
are required.

Note: this unifies and simplifies the code as this was already "fixed" for certain situations.
@simonpoole simonpoole force-pushed the always_respect_multi_fetch_limits branch from c1b97b8 to a0161d6 Compare May 28, 2024 16:07
@simonpoole simonpoole merged commit ac66420 into master May 28, 2024
2 of 3 checks passed
@simonpoole simonpoole deleted the always_respect_multi_fetch_limits branch May 28, 2024 19:25
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.

1 participant