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

Don't allow adding the same member to a relation if it is already present in it #9311

Closed
jidanni opened this issue Sep 28, 2022 · 6 comments
Closed

Comments

@jidanni
Copy link
Contributor

jidanni commented Sep 28, 2022

iD allows us to add a member to a relation, as many times as we please!

Please just only allow unique members.

What good does having the same member reoccur twice in a relation?

@jidanni
Copy link
Contributor Author

jidanni commented Sep 29, 2022

Oops, there are plenty of routes we one might legitimately go over the same place twice.

However it's still possible in iD to just to keep on clicking on something same place five times in a row. That wouldn't make sense.

@1ec5
Copy link
Collaborator

1ec5 commented Sep 29, 2022

Right, this can legitimately happen for a route that doubles back on itself. Offhand, I can’t think of another good reason for a member to appear twice, though there is a long tail of exotic relation types out there that we should continue to support minimally.

The PTv2 scheme and route directions require creating multiple relations for the same route, which have similar labels in iD. To avoid confusion, when you choose a relation to add the current feature to, the list of available relations could sort already added relations to the end of the list, or the label could be grayed out or italicized to indicate that there’s something special about it.

A validator warning for unexpected duplicate memberships would also be valuable for non-route relations.

@DujaOSM
Copy link

DujaOSM commented Oct 6, 2022

Related: #8167

@danieldegroot2
Copy link
Contributor

This issue is a duplicate of #7648.

( cc: @tyrasd )

@jleedev
Copy link
Contributor

jleedev commented Oct 24, 2022

This is how restriction=no_u_turn works.

@1ec5
Copy link
Collaborator

1ec5 commented Oct 15, 2024

We should visually distinguish any existing relation membership without preventing the user from adding it: #10501.

@1ec5 1ec5 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 15, 2024
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

No branches or pull requests

5 participants