improve definition of template presets be be less confusing#1766
improve definition of template presets be be less confusing#1766tyrasd merged 3 commits intoopenstreetmap:mainfrom
Conversation
|
🍱 Your pull request preview is ready Please use this preview to check your changes. Ideally use the test documentation template and document your test results by commenting on the PR. This will speed up the review process for everyone. FYI, once this PR is merged, you can use the iD Editor Preview to test your changes in interaction with all other changes. |
k-yle
left a comment
There was a problem hiding this comment.
I think we'll need to update iD first – If you create a node tagge with @template=poi, this preset will now match, which is unexpected
|
I think that an internal preset appearing if someone puts in unreasonable tagging is entirely fine. |
actually, it will not to check: is it still true after e5f076c |
for completeness: it is matching, which is why you can see whether this matters is a different question 🤷 |
|
I was happy that label will not change. I will check how it changes influence on fields but if adding truly weird tag will cause some moreFields to match I see no problem |
|
Actually, "point has no tags" error disappearing and facebook presets appearing in |
|
yeah, the idea to have this (admittedly quite confusing) construct was to make the preset never actually match any osm feature, even in the case that a user was adding the Also, it would probably less confusing to model it like |
this lets the preset to properly fall back to the generic point,linea or area preset in case no preset matches in the current region see openstreetmap/id-tagging-schema#1766 (comment)
these should never actually apply to any real OSM feature on the planet.


fixes ideditor/schema-builder#216
Description, Motivation & Context
intended to replace weird and unusual construct with more widely used one, to achieve the same effect
Related issues
ideditor/schema-builder#216
Links and data
Relevant OSM Wiki links:
none
Relevant tag usage stats:
none
Checklist and Test-Documentation Template
Read on to get your PR merged faster…
Follow these steps to test your PR yourself and make it a lot easier and faster for maintainers to check and approve it.
This is how it works:
After you submit your PR, the system will create a preview and comment on your PR:
Once the preview is ready, use it to test your changes.
Now copy the snippet below into a new comment and fill out the blanks.
Now your PR is ready to be reviewed.