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

Handling shared node dependencies in pending edits #264

Closed
6 tasks done
batpad opened this issue May 27, 2020 · 1 comment
Closed
6 tasks done

Handling shared node dependencies in pending edits #264

batpad opened this issue May 27, 2020 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@batpad
Copy link
Member

batpad commented May 27, 2020

Currently, if you create a shared node with a way that has not yet been uploaded to OSM (i.e. still has an observe temporary id), this will create a new node instead of applying it as a shared node when updating both pending edits.

To solve this, we will need to do two things:

  • a> establish dependencies -- i.e. mark out that edit with id say observe-xyz cannot be uploaded until observe-abc is uploaded.
  • b> whenever a new way is uploaded, retrieve the mapping of ids from OSM when uploading the changeset, look at all pending edits, and replace the temporary OSM IDs with the newly uploaded IDs from OSM.

For a> this would ideally be handled when creating the way in the wayEditHistory screen. For b>, we would need to do something like:

@geohacker - Let me know if this makes sense. I'm not certain of the way to implement the marking out of dependencies to make sure things are not uploaded out of order. This should hopefully just be something like adding a flag when creating a new way that shares nodes with a way that has an observe- id and checking for that flag when uploading (similar to how we do for photos with dependencies on new features, etc.).

@geohacker geohacker added this to the v1.0-rc1 milestone May 27, 2020
@geohacker geohacker added the bug Something isn't working label May 27, 2020
@geohacker
Copy link
Member

This is fixed in #282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants