Skip to content

OSMCha large changesets don’t load #965

Closed

Description

@Rub21

Currently, OSMCha is using export const enableRealChangesets = false; https://github.com/OpenHistoricalMap/osmcha-frontend/blob/7e5884af31ab35840340abf5e97155779a59641c/src/config/constants.js#L13 , which fetches data from Overpass to display the geometry changes in the map. I believe that when there is a large changeset, it takes time and sometimes doesn’t complete the request.

https://osmcha.openhistoricalmap.org/changesets/155955

Image

cc. @batpad

Activity

  1. Rub21 commented on Feb 4, 2025

    @Rub21
    MemberAuthor

    Per chat with Sanjay, it would be good to use osm-adiff-service, which creates JSON documents describing each changeset in detail. l https://github.com/OSMCha/osm-adiff-service
    osm-adiff-service creates JSON files from each changeset and uploads them to S3. It’s easier to use these files to display on the map instead of requesting data from the Overpass API.

  2. added theissue type on Mar 16, 2025
  3. 1ec5 commented on Apr 2, 2025

    @1ec5
    Member

    OSMCha/osmcha-frontend#772 migrates from the Overpass API to osm-adiff-service (and also migrates from Mapbox to MapLibre, which will improve compatibility with the Historic style that’s now the default basemap).

  4. 1ec5 commented on Apr 8, 2025

    @1ec5
    Member

    That change landed in OSMCha v1.2.0.

  5. Rub21 commented on Apr 24, 2025

    @Rub21
    MemberAuthor

    I have been trying osm-adiff-service with some customization in https://github.com/OpenHistoricalMap/osm-adiff-service/tree/ohm but it is missing a service: https://github.com/MaZderMind/replicate-sequences that solve timestamps to replication numbers. there is for OSM, but now not for OHM, that service is used in https://github.com/OpenHistoricalMap/osm-adiff-service/blob/ohm/backfill/helpers.js#L47

    I have been trying as it is , only changing the minute replication and change-sets path , but it didi not get any data.

    @willemarcel could you confirm for us, that services replicate-sequences is required to run osm-adiff-service?

  6. willemarcel commented on Apr 25, 2025

    @willemarcel

    @Rub21 it's only necessary by an old backfill command, but we have not used it for years. If you need to backfill past changesets, you can use this CLI command: https://github.com/OSMCha/osm-adiff-service/tree/main?tab=readme-ov-file#cli

  7. Rub21 commented on Apr 25, 2025

    @Rub21
    MemberAuthor

    Thank you @willemarcel ,

    I am trying to set up and use yarn process 996008, but it seems something is missing in our cgimap config and request headers, because the osm-adiff-service cannot retrieve the changeset XML data. This only happens when running the script, https://gist.github.com/Rub21/5eaa4b550d700572bcdd840b8d180a80 not with other apps.

    I am going to check further on this issue.

  8. Rub21 commented on May 12, 2025

    @Rub21
    MemberAuthor

    Updates, the OHM repository was updated from upstream, and the latest version of OSMCha is now running in staging https://osmcha.staging.openhistoricalmap.org/

    This setup is acceptable for now since OSMCha still uses Overpass to retrieve the changes. Even if it doesn’t find the adiff service URL- OSMCha will still work without the adiff service.

    here’s the ticket proposing the creation of the adiff service to load large changeset. which would require OHMExpress. #1042

  9. Rub21 commented on Aug 14, 2025

    @Rub21
    MemberAuthor

    Fixed: We deployed ohmx-adiff-builder for OHM and we store the adiff files in :
    https://planet.openhistoricalmap.org/?prefix=ohm-augmented-diffs/changesets/

    Now osmcha load large changes.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions