-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
wrong value comments_count reported by API #401
Comments
This probably changed as a result of <https://github.com/zerebubuth/openstreetmap-cgimap/pull/388/files#diff-0346c6a7452f5888ebe2d514cc2d983b265c189ab22d3a72011a29978306b5afR461>
Why is josm not setting the include_discussion parameter though when fetching that changeset?
…On 25 April 2024 10:13:12 CEST, GerdP ***@***.***> wrote:
The response from API https://api.openstreetmap.org/api/0.6/changeset/79214306
says comments_count="0" while https://api.openstreetmap.org/api/0.6/changesets?changesets=79214306
correctly says comments_count="1"
See also https://josm.openstreetmap.de/ticket/23642#comment:2 which shows the responses.
--
Reply to this email directly or view it on GitHub:
#401
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Probably to avoid caching unwanted data. The call is only executed to fill the list of changesets. Do you suggest to change JOSM code instead of fixing the wrong API result? |
Thank you for reporting this issue. Indeed, this looks like a regression in 0.9.1. comments_count should be 1 in both cases. By the way, changesets?changesets=79214306 is implemented on Rails only, that's why the changes in #388 have no impact on this endpoint. Link to JOSM discussion: https://josm.openstreetmap.de/ticket/23642 |
@tomhughes : one option I see here is to route the This depends a bit how severe the issue is for JOSM. It has been created with "normal" priority, so we might as well wait until we have the fix available. FIx should be available on the dev instance in the next 30 mins. Example: https://master.apis.dev.openstreetmap.org/api/0.6/changeset/299208 vs. https://master.apis.dev.openstreetmap.org/api/0.6/changeset/299208?include_discussion New release 0.9.2 based on 0.9.1 + cherry picking c9c222c |
New build is in progress: https://launchpad.net/~mmd-osm/+archive/ubuntu/cgimap-902-jammy |
No? Obviously the API should be fixed. I assumed the third request for the single changeset details as listed in the josm issue is triggered by clicking on the button to show the changeset comments. That's why it seemed strange that it didn't set the include_discussion parameter, considering fetching the comments was the main purpose. https://josm.openstreetmap.de/ticket/23642#comment:1
I haven't actually been able to reproduce the josm issue. I always get two GET requests for the changeset, one without the parameter and then one with the parameter right after.
Edit: Fix is already deployed, so that's why. |
Yes, I also wondered why JOSM sends two requests, The patch 23642-2.patch which I attached to the JOSM ticket solves this:
|
Never used it before but there is a side window "Changesets" which shows the changesets for the downloaded data. For this scenario 23642-2.patch would possibly download more data than before. |
The response from API https://api.openstreetmap.org/api/0.6/changeset/79214306
says comments_count="0" while https://api.openstreetmap.org/api/0.6/changesets?changesets=79214306
correctly says comments_count="1"
See also https://josm.openstreetmap.de/ticket/23642#comment:2 which shows the responses.
The text was updated successfully, but these errors were encountered: