You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Name and Address fields missing from many presets #449
The Name and Address fields are missing from many presets, for example Supermarket, Florist, Video Store, Charity Office, and Law Office. As a result, mappers have to enter addresses using the raw tag editor. I can’t figure out a pattern to the presets that are missing these fields, but maybe it’s relevant that these presets are supposed to inherit their tags and “more” tags from more generic presets like Shop and Office following openstreetmap/iD#5712. Other inherited fields like Telephone remain available.
I'd say we are lacking an in-house iD build guru! I don't think we changed presets since Jim McAndrew did the initial work to add start and end date back in 2017.
I'm away from keyboard right now though so I might be forgetting later changes.
Would this be resolved if we update iD and fall back to using the existing OSM iD presets with some overrides, as @1ec5 suggests in #395?
Would this be resolved if we update iD and fall back to using the existing OSM iD presets with some overrides, as @1ec5 suggests in #395?
If we start over from a fresh iD, as you’ve started in #395 (comment), then yes, I’m pretty sure this issue would be resolved. openstreetmap/iD#5712 is a relevant change, but none of that code is present in this codebase, so I think OpenHistoricalMap/iD#18 might’ve somehow skipped it inadvertently.
I think the root cause of this issue is that OpenHistoricalMap/iD@1258835 ensures that the Start Date, End Date, Source, and License fields are part of every preset, including some presets that otherwise would have no fields. A preset automatically inherits from a more generic preset only if it has no fields of its own; otherwise, the preset has to specify that it inherits from the other preset. For example, Supermarket specifies no fields of its own, so iD automatically adds the fields from Shop.
We need to find a different way to add these four fields to every preset, either by restoring the special case removed in openstreetmap/iD#4201 but for these fields, or by only adding the fields to the “root” presets that don’t inherit from anything else.
Activity
[-]Address field missing from many presets[/-][+]Name and Address fields missing from many presets[/+]jeffreyameyer commentedon Sep 23, 2022
Weird... I wonder if some of those were stomped out when we added start, end, source, and license to everything.
What's the best approach for inventorying which need to have these fields re-added and re-adding them?
@danrademacher - who's our in-house iD build guru?
danrademacher commentedon Sep 23, 2022
I'd say we are lacking an in-house iD build guru! I don't think we changed presets since Jim McAndrew did the initial work to add start and end date back in 2017.
I'm away from keyboard right now though so I might be forgetting later changes.
Would this be resolved if we update iD and fall back to using the existing OSM iD presets with some overrides, as @1ec5 suggests in #395?
1ec5 commentedon Sep 24, 2022
If we start over from a fresh iD, as you’ve started in #395 (comment), then yes, I’m pretty sure this issue would be resolved. openstreetmap/iD#5712 is a relevant change, but none of that code is present in this codebase, so I think OpenHistoricalMap/iD#18 might’ve somehow skipped it inadvertently.
1ec5 commentedon Oct 13, 2022
I think the root cause of this issue is that OpenHistoricalMap/iD@1258835 ensures that the Start Date, End Date, Source, and License fields are part of every preset, including some presets that otherwise would have no fields. A preset automatically inherits from a more generic preset only if it has no
fields of its own; otherwise, the preset has to specify that it inherits from the other preset. For example, Supermarket specifies nofields of its own, so iD automatically adds the fields from Shop.We need to find a different way to add these four fields to every preset, either by restoring the special case removed in openstreetmap/iD#4201 but for these fields, or by only adding the fields to the “root” presets that don’t inherit from anything else.
1ec5 commentedon Oct 17, 2022
Fixed in OpenHistoricalMap/iD#145.