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

App should not create maxspeed:type entries that conflict with existing source:maxspeed #720

Closed
hholzgra opened this issue Dec 13, 2017 · 2 comments
Labels

Comments

@hholzgra
Copy link

See e.g. versions #9 and #10 on this way:

https://www.openstreetmap.org/way/25800616/history

In version #9 it only had

source:maxspeed=DE:urban

in version #10 a "Zone 30" limit was added as

maxspeed=30
maxspeed:type=DE:zone30

I don't care about the maxspeed:type vs. source:maxspeed discussions here, just about not having such conflicting values being created.

So please either remove conflicting source:maxspeed when setting maxspeed:type, or modify existing source:maxspeed accordingly ...

@westnordost
Copy link
Member

westnordost commented Dec 14, 2017 via email

@westnordost
Copy link
Member

westnordost commented Jan 3, 2018

Ok, so when the server reports a conflict when uploading the change (= the to-be-updated element has a new version), StreetComplete now downloads the new version of the element and then checks if the quest is still applicable to the updated element.
If it can be determined, and the answer is "no", then StreetComplete will drop the change made by the user.
If it cannot be determined, the behavior of StreetComplete remains the same as before: It attempts to apply the changes to the element. If the changes cannot be applied because of an unsolvable conflict (i.e. adding maxspeed key but in the updated way, the key already exists; or the whole way has been deleted), the app will also drop the change made by the user.

mnalis pushed a commit to mnalis/StreetComplete that referenced this issue Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants