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

fix destination_sign relations not updated when splitting a way #10646

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

k-yle
Copy link
Collaborator

@k-yle k-yle commented Jan 3, 2025

Closes #9188

destination_sign can use the intersection role instead of via.

There are still valid cases destination_sign relations won't be split properly, such as if there is no from role. But this helps with the most common cases

@k-yle k-yle marked this pull request as ready for review January 3, 2025 08:41
Copy link
Collaborator

@tordans tordans left a comment

Choose a reason for hiding this comment

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

There are a few code comments that only reference the VIA now. Is there a way to update those without writing an essay on the topic? :)

@@ -1674,7 +1676,7 @@ describe('iD.actionSplit', function () {
iD.osmRelation({id: 'r', tags: {type: type}, members: [
{id: '-', role: 'from', type: 'way'},
{id: '~', role: 'to', type: 'way'},
{id: 'd', role: 'via', type: 'node'}
{id: 'd', role: via, type: 'node'}
Copy link
Collaborator

Choose a reason for hiding this comment

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

When reading the changes, I did not immediately get this. Maybe a different name like viaKey would make it more explicit? (Code editors will also help with proper tool tips and highlighting, though)

@k-yle k-yle force-pushed the kh/9188-split-dest-sign branch from c1f26f2 to a0a918d Compare January 3, 2025 09:03
@k-yle
Copy link
Collaborator Author

k-yle commented Jan 3, 2025

There are a few code comments that only reference the VIA now. Is there a way to update those without writing an essay on the topic? :)

good point, although I can't think of concise word that encompasses via and intersection. Something like midpoint is more verbose and possibly less obvious than via...

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.

Splitting a 'to' member of destination_sign relations adds an extra 'to' member
2 participants