Modify

Opened 13 years ago

Last modified 10 months ago

#7513 reopened enhancement

[Patch] Warn non-experts when combining ways with conflicting tags or ways being part of relations

Reported by: simon04 Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: combine conflict tag membership Cc:

Description (last modified by simon04)

To reduce erroneous edits, I suggest to warn non-experts when combining ways with conflicting tags or ways being part of relations. The aim is to minimize broken route relations or highways being tunnel/brigde for several kilometers at the same time.

For non-experts, show the dialog 1 (if needed), show the dialog 2 (if needed), show the CombinePrimitiveResolverDialog (if needed).

Attachments (4)

combine_tags.png (7.1 KB ) - added by simon04 13 years ago.
combine_relations.png (8.3 KB ) - added by simon04 13 years ago.
7513.patch (26.5 KB ) - added by simon04 13 years ago.
7513_bugfix.patch (6.8 KB ) - added by simon04 13 years ago.

Download all attachments as: .zip

Change History (20)

by simon04, 13 years ago

Attachment: combine_tags.png added

by simon04, 13 years ago

Attachment: combine_relations.png added

comment:1 by simon04, 13 years ago

Description: modified (diff)
Summary: Warn non-experts when combining ways with conflicting tags or ways being part of relations[Patch] Warn non-experts when combining ways with conflicting tags or ways being part of relations

by simon04, 13 years ago

Attachment: 7513.patch added

comment:2 by simon04, 13 years ago

Patch attached … This comes with some cleanup of the CombinePrimitiveResolverDialog code which was replicated at least 3 times in the core.

What do you think? I'm happy to hear some comments. :-)

comment:3 by simon04, 13 years ago

Description: modified (diff)

in reply to:  2 ; comment:4 by skyper, 13 years ago

Replying to simon04:

What do you think? I'm happy to hear some comments. :-)

For tags, I think it is smoother to show this dialog after the "tag conflict dialog" with a button to go back to the "tag conflict dialog".

in reply to:  4 comment:5 by simon04, 13 years ago

Replying to skyper:

For tags, I think it is smoother to show this dialog after the "tag conflict dialog" with a button to go back to the "tag conflict dialog".

The "new" dialog is intended to somehow explain the situation (why another dialog is going to appear) and the dangers (may lead to unwanted results). If the user chooses to abort, the tag conflict dialog does not need to be shown at all. Therefore, I would show the new dialog before showing a more complicated tag conflict dialog.

comment:6 by simon04, 13 years ago

Resolution: fixed
Status: newclosed

In 5132/josm:

fix #7513 - Warn non-experts when combining ways with conflicting tags or ways being part of relations

comment:7 by simon04, 13 years ago

Resolution: fixed
Status: closedreopened

From comment:11:ticket:4842

Now it raises conflicts even with untagged objects.

I have an node with addr:housenumber=19 as tag and part of a associatedStreet relation and merge it with a node id:0 with no tages but part of a closed way and I get the tag conflict dialogue shown.

comment:8 by simon04, 13 years ago

attachment:7513_bugfix.patch​ restores original behaviour (i.e., before r5132). However, the original implementation seems to be a quirk to me: When merging nodes, the conflict dialog is skipped when the nodes are part of at most 1 relation. Why is it safe up to one relation, but no longer when 2 or more relations are involved?

by simon04, 13 years ago

Attachment: 7513_bugfix.patch added

in reply to:  8 comment:9 by skyper, 13 years ago

Replying to simon04:

attachment:7513_bugfix.patch​ restores original behaviour (i.e., before r5132). However, the original implementation seems to be a quirk to me: When merging nodes, the conflict dialog is skipped when the nodes are part of at most 1 relation. Why is it safe up to one relation, but no longer when 2 or more relations are involved?

Can not think of any problem as long as one node does not have any tags nor memberships. Concerning ways I am not sure as you could easily break relations that way.

comment:10 by stoecker, 12 years ago

Hmm. What is the status of this? Apply it or not?

comment:11 by stoecker, 11 years ago

@simon04: Status?

comment:12 by simon04, 11 years ago

Actually, I forgot this ticket and the idea in the patch. We could still apply it … ;-)

in reply to:  8 ; comment:13 by skyper, 5 years ago

Replying to simon04:

From skyper comment:11:ticket:4842

Now it raises conflicts even with untagged objects.

I have an node with addr:housenumber=19 as tag and part of a associatedStreet relation and merge it with a node id:0 with no tags but part of a closed way and I get the tag conflict dialogue shown.

Can not reproduce. Works as expected.

Replying to simon04:

attachment:7513_bugfix.patch​ restores original behaviour (i.e., before r5132). However, the original implementation seems to be a quirk to me: When merging nodes, the conflict dialog is skipped when the nodes are part of at most 1 relation. Why is it safe up to one relation, but no longer when 2 or more relations are involved?

Was this revert ever applied ?
Think we can close this ticket.

in reply to:  13 comment:14 by skyper, 5 years ago

Forgot about normal mode only:

Replying to skyper:

From skyper comment:11:ticket:4842

Now it raises conflicts even with untagged objects.

I have an node with addr:housenumber=19 as tag and part of a associatedStreet relation and merge it with a node id:0 with no tags but part of a closed way and I get the tag conflict dialogue shown.

Can not reproduce. Works as expected.

Can reproduce:

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-01-22 22:31:24 +0100 (Wed, 22 Jan 2020)
Revision:15752
Build-Date:2020-01-23 02:30:55
URL:https://josm.openstreetmap.de/svn/trunk

Was this revert ever applied ?

No was not.

Think we can close this ticket.

comment:15 by skyper, 5 years ago

Would it be possible to optionally enable this for expert user, too ?

As we also have conflicting tag combinations and actions like "Join Areas" (#18675) it would be useful. It could still be disabled like some other warnings with options to remember for action, session, e.g.

comment:16 by skyper, 10 months ago

Keywords: combine conflict tag membership added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as reopened The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user. Next status will be 'new'.
Next status will be 'needinfo'. The owner will be changed from team to simon04.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.