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

show way conflict message #299

Merged
merged 3 commits into from
Jun 9, 2020
Merged

Conversation

sethvincent
Copy link
Contributor

@sethvincent sethvincent commented Jun 5, 2020

This PR will make it so that conflicts on way changes can't be overwritten.

todo:

  • change header buttons to just one button for discarding changes

@sethvincent sethvincent marked this pull request as ready for review June 6, 2020 00:11
@sethvincent sethvincent requested review from batpad and geohacker June 6, 2020 00:11
@@ -217,6 +228,9 @@ export default class Conflict extends React.Component {
if (updatedFeature.isDeleted) {
return this.upstreamDeleted()
}
if (updatedFeature.geometry.type === 'LineString' || updatedFeature.geometry.type === 'Polygon') {
Copy link
Member

Choose a reason for hiding this comment

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

I think we should check if this is a complex edit and then disallow overwriting. The current condition will stop the user from overwriting attribute changes.

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure actually. Perhaps this is ok for now.

@geohacker geohacker merged commit 1594db4 into edit-ways Jun 9, 2020
@geohacker geohacker deleted the disallow-way-conflict-overwrite branch June 9, 2020 04:05
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.

2 participants