-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Warn when addr:*=*
is added to a relation
#10642
Comments
Technically they can be added to relations, e.g. a building with an address in the relation onRelation=no on OSM Wiki means "on relations except multipolygon relations". |
Yeah, I meant it like that. |
To some extent this is already addressed by the presets: presets for non-multipolygon relations should not have an address field. So only users who are using the raw tag editor should be affected and those users should be aware of the tagging rules. 😉 That said, it wouldn't hurt to add a validation rule for this, if someone wants to give it a shot. |
@tyrasd I've found this list: Lines 270 to 278 in b2b397c
However, this only specifies keys. And this validation rule should be like:
etc. Is it possible to add these to an existing list? If not, could you please point me to the right direction? Thank you in advance! |
Can you please assign this issue to me if it is still open? I'd love to work on it. |
@Avan2021 I don't have that option but you can work on it anyway! |
@gy-mate do you think adding a new condition to osmMutuallyExclusiveTagPairs like |
🤔 Maybe let's step back a little bit before starting to work on it right away. The thing with validations/warnings in iD is that they are not primarily meant to be a method to "clean up OSM data". Especially if the issues are primarily caused by (users of) other editors, these warnings could even be confusing and irritating for users of iD. iD tries to abstract away complicated concepts like relations wherever possible (e.g. by presets), so coming up with an easy to understand validation message would be critical if we want to add one in iD. An additional complication is that validation warnings in iD should be actionable. This is typically done by providing buttons to directly solve the issue: For example, the So, wouldn't it make more sense to tackle this problem on a different level: If this case would be included in a quality assurance tool like osmose, then it would be more generally visible than a validation warning only in iD, it would be more targeted as new users would not be "bothered", and experienced users could also get these warnings in iD by enabling the respective QA layer. |
Description
addr:*=*
tags are not allowed on relations (except multipolygon relations):Therefore, I think that iD should warn users when this "rule" isn't met.
Screenshots
N/A
The text was updated successfully, but these errors were encountered: