[OSM-dev] iD news - 2.12.0 released 🎉
bhousel at gmail.com
Mon Dec 10 14:54:23 UTC 2018
Sure, I can describe the logic in more detail.
When I talk about “fields”, I mean the fields near the top of iD’s sidebar. Users can still edit all the raw tags in the tag editor that appears below the fields.
The purpose of this feature is not really to prevent someone who knows what they are doing from changing a tag value, but more to hint to users (especially newbies) “hey maybe you should not change that”.
The protection should discourage people from changing the Name field just for fun, but also make sure that if a business re-brands (e.g. a Shell station changes to an Exxon station) someone changes all the tags and not just the Name that gets rendered.
The fields that can be protected are the “Name” and “Brand” fields.
If the `name` tag has a value, and there is a `wikidata` or `brand:wikidata` tag with a value, and the “Brand” field is not being shown, the “Name” field will be readonly and have a tooltip that says: "The “Name" field is locked because there is a Wikidata tag. You can delete it or edit the tags in the "All tags" section."
If the `brand` tag has a value and there is a `brand:wikidata` tag with a value, the “Brand” field will be readonly and have a tooltip that says: "The “Brand" field is locked because there is a Wikidata tag. You can delete it or edit the tags in the "All tags" section.”
In practice it means that features with a `wikidata` tag (the closest thing we have in OSM to a stable identifier) will have the “Name" field readonly. This includes things like places, landmarks, artworks, schools, etc.
It also means that most features with a `brand:wikidata` tag will have the “Name" field readonly - this includes recognized brands like “McDonald’s”, “Starbucks” etc. The exception to this is when iD displays both a “Name" and a “Brand" field, the “Name" field is unlocked and the “Brand" field is locked. This is done on gas stations, car/motorcycle dealerships, hotels/motels - anything where it is common for the Name and Brand to be different (`name=Route 22 Honda`, `brand=Honda`).
More details can be found on this ticket:
I also encourage everyone to try editing with iD and see how it works in practice.
> On Dec 10, 2018, at 2:59 AM, Frederik Ramm <frederik at remote.org> wrote:
> On 10.12.2018 03:14, Bryan Housel wrote:
>> iD now displays linked data if a feature has a wikidata tag, and will
>> protect fields like name and brand from direct editing.
> Can you elaborate on the logic behind this a bit more?
> On first reading it sounds like if I set a wikidata tag on something, iD
> will load name and brand from wikidata and not allow editing of those
> fields but that certainly can't be right. Which fields exactly are
> protected, what does protection mean, and by what is this protection
> Frederik Ramm ## eMail frederik at remote.org ## N49°00'09" E008°23'33"
> dev mailing list
> dev at openstreetmap.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dev