-
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 user when uploading a boundary relation member with no role #8709
Comments
This is reminiscent of the existing warning (with two suggested fixes) when a multipolygon relation member is missing a role: iD/modules/validations/missing_role.js Lines 22 to 28 in fa5e7bc
It would make sense to adapt this validator rule to boundary relations. This should be more straightforward than #8286 (comment), because there wouldn’t be any need to know about any other boundary relation members.
#4695 and #8268 express a similar idea about turning the role field into a combo box with restricted values. One benefit would be the ability to translate the roles to help non-English-speakers understand relations a little better. However, restricting the values of this field would be a bit more heavy-handed than restricting the values of a normal field, since there isn’t a “raw relation editor” for a more advanced user in the middle of a tricky refactor to fall back to. |
Strong #2014 vibes from this one. |
In this case we are showing that if you edit and existing relation and there is already role errors that ID does not show those errors or warnings. |
This issue exists in the Multiploygon relations as well. |
Can you open a separate issue about this and include full steps to reproduce? There is a validation rule about missing roles in multipolygon relations that normally works, whereas this feature appears to be unimplemented for boundary relations: iD/modules/validations/missing_role.js Line 22 in ce136d0
Lines 244 to 246 in ce136d0
|
Currently, iD will allow a user to upload a boundary relation member with a blank role. Boundary relations should have the role of
inner
,outer
,label
, oradmin_centre
.Steps to recreate:
No warning would be shown to the user. iD should prevent the user from changing boundary relation member roles to anything other than the four values above.
The text was updated successfully, but these errors were encountered: