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

fix changeset submission bug for tag fix tasks with relations #1121

Merged
merged 1 commit into from
May 27, 2024

Conversation

CollinBeczak
Copy link
Contributor

@CollinBeczak CollinBeczak commented May 23, 2024

Issue Resolved: maproulette/maproulette3#2344

In our changeset provider, we utilize a custom versioned object for constructing changesets for nodes, ways, and relations. However, the versioned object for relations previously employed a way wrapper, as illustrated below:

<way>{content}</way>

This resulted in OpenStreetMap searching for a way with the relation ID, leading to the error message:

https://www.openstreetmap.org/api/0.6/changeset/{changesetId}/upload failed with status code 412 (Precondition failed: Way {wayId} must have at least one node)

Relations necessitate a structure like so:

<relation>{content}</relation>

This pull request addresses this issue by implementing the required change.

Copy link

sonarcloud bot commented May 23, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@ljdelight ljdelight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CollinBeczak this looks good to me, great discovery on the cause!

My only suggestion is to configure JOSM and MapRoulette (running locally) to use the dev OSM site. Pushing changesets to the production database side isn't a good practice (eg change 7 for the relation https://www.openstreetmap.org/relation/272138/history/7).

@CollinBeczak CollinBeczak merged commit 9026e61 into main May 27, 2024
7 checks passed
@CollinBeczak CollinBeczak deleted the fix-changeset-relations-bug branch May 27, 2024 23:23
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.

TagFix Challenge always returns "Oops, your changes could not be saved"
2 participants