Modify

Opened 13 years ago

Closed 4 years ago

#6836 closed defect (duplicate)

unglue way: only keep memberships of turn restriction if selected way is part of.

Reported by: skyper Owned by: team
Priority: major Milestone:
Component: Core Version:
Keywords: unglue turn relation from via to Cc: simon04

Description (last modified by skyper)

If I unglue a way at a node with role=via in turn restrictions its memberships are copied to the new node which breaks all turn relations (warning needed) and is wrong if the selected and unglued way is not part of the relation.

Please do not copy the node's memberships if the way is not part of the relation and warn if it is because user has to solve the problem manually.

r4419

Thanks

Attachments (2)

6836.osm (7.6 KB ) - added by Don-vip 5 years ago.
6836.patch (2.6 KB ) - added by GerdP 4 years ago.

Download all attachments as: .zip

Change History (19)

comment:1 by skyper, 11 years ago

Description: modified (diff)

This is really annoying.

comment:2 by skyper, 11 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #4635.

comment:3 by Don-vip, 5 years ago

Keywords: from via to added
Resolution: duplicate
Status: closedreopened
Type: enhancementdefect

#4635 was about split, which works correctly. Unglue has indeed a problem.

by Don-vip, 5 years ago

Attachment: 6836.osm added

comment:4 by GerdP, 4 years ago

I wonder how you can unglue such a node without breaking the turn restrictions?

comment:5 by GerdP, 4 years ago

Owner: changed from team to skyper
Status: reopenedneedinfo

comment:6 by GerdP, 4 years ago

Ah, in your example one can unglue way 453764535 as it is not part of a restriction relation.
I think the popup introduced #8838 is the solution for this problem, right?
Fixed?

Version 0, edited 4 years ago by GerdP (next)

comment:7 by skyper, 4 years ago

No the popup should not be shown for w453764535 as it has nothing to do with the relations and the only solution is to not copy but keep the memberships on the existing node to not break the relations. Issue is similar or even the same as in #18670 but with a different type with own treatment.

For the other ways the situation is fixed.

comment:8 by skyper, 4 years ago

Owner: changed from skyper to team
Status: needinfonew

in reply to:  7 comment:9 by skyper, 4 years ago

Replying to skyper:

No the popup should not be shown for w453764535

Sorry, the popup should only show the tag part. E.g. delete all tags from node first and then unglue should not show a popup.

comment:10 by GerdP, 4 years ago

Cc: simon04 added

I agree. In what situation do we actually want to add the membership to the new (or both) nodes? Was introduced for #8838.
Up to now I can only think of type=site relations which would not be broken.

in reply to:  10 comment:11 by skyper, 4 years ago

Replying to GerdP:

I agree. In what situation do we actually want to add the membership to the new (or both) nodes? Was introduced for #8838.
Up to now I can only think of type=site relations which would not be broken.

I know relations for TMC Points, Old german import scheme and TMC Point, plus node relations.
I am not sure about enforcement.

comment:12 by GerdP, 4 years ago

OK, so we cannot remove that option. The current code shows the dialog before it is known that none of the relations will be changed. Not easy to change that.

comment:13 by GerdP, 4 years ago

Not easy to change that.

Unless we simply say that the dialog should ignore memberships where the role is "via".

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

Replying to GerdP:

OK, so we cannot remove that option. The current code shows the dialog before it is known that none of the relations will be changed. Not easy to change that.

No, please, do not remove the code!
Replying to GerdP:

Not easy to change that.

Unless we simply say that the dialog should ignore memberships where the role is "via".

That is the way to go, handle known types, properly, either by role or relation type or even both.

by GerdP, 4 years ago

Attachment: 6836.patch added

comment:15 by GerdP, 4 years ago

The patch changes the code which check the selected node(s) so that memberships in type=restriction or type=connectivity relations are ignored as well as memberships where the role is "via". If any membership is found which doesn't match these criteria the dialog "Where should the memberships of this node be put?" is shown.

There are probably more relation types and roles, but I think those should be handled in new tickets.

comment:16 by GerdP, 4 years ago

This needs more thinking. See related ticket:18670#comment:6

comment:17 by skyper, 4 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #18670.
This was fixed within #18670.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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