Omit religion=none from suggested options of religion field for places of worship#1940
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. |
are you sure? where this label and its translation are defined after this change? |
|
I see now that deleting that line of code might break the label for existing data. I will update the PR to restore the 'Non-religious' string while adding an explicit options array that excludes none. This keeps the label perfect for 20,000 schools because the translation is still defined in the strings.options object, which the editor uses to map raw tag values to human-readable text. By excluding it from the options array, we simply remove it from the 'suggested' UI buttons without deleting it from the dictionary. This stops the button from being suggested for religious presets, while future mappers can still manually type the tag if needed, and the editor will recognize it through the restored string. |
tyrasd
left a comment
There was a problem hiding this comment.
I think it is not ideal to not be able to select the none options for features like a school that also use the religion field, but would most often be tagged as nonreligious.
See #1939 (comment) for an idea to better approach this.
|
This current PR matches exactly the idea you mentioned there in #1939 (comment). My thinking with the current PR was that mappers could still manually type religion=none in the tags section if they needed it like for eg. in case of schools. The better approach I can think right now is : I also looked into creating separate new field file or implementing a conditional check on the none value directly within the school.json and religion.json presets. However, I’m concerned that the iD schema may not support this. Because the global field list might dominate the presets logic, even if we try to add a manual fix in a specific file the editor just ignores it and uses the main list instead. |
|
are you sure that
part was done? |
|
If you are unsure how to do this: do not worry, until few minutes ago I also was unaware. Since then I created https://github.com/ideditor/schema-builder/pull/260/changes that may be helpful and should explain how to achieve it. |
@matkoniecz, thanks for the reference, this helps to understand. |
|
Reverted religion.json back to original, created a new religion_place_of_worship.json field that uses stringsCrossReference: "{religion}" to inherit strings from the existing field but excludes none from options, and updated place_of_worship.json to use this new field instead. |
matkoniecz
left a comment
There was a problem hiding this comment.
I guess it works, though you get anyway 'no' coming from taginfo
not sure is this list good enough to disable taginfo suggestions
|
It seems to not work as I would expect, but it looks like it is an iD bug |
|
Thanks for the PR! It is now merged but note that before you will see it in iD few things need to happen. iD tagging schema needs to get release (see https://github.com/openstreetmap/id-tagging-schema/releases - latest one mentioned there is just a draft). And later needs to be pulled in by iD. Thanks again for your contribution! If you are interested in making other one it would be really welcome! |
|
openstreetmap/iD@b71105a should fix iD bug, so it has more noticeable effect once released note: if our religion list is really complete, maybe we can and should disable showing values coming from taginfo, see https://github.com/ideditor/schema-builder?tab=readme-ov-file#autosuggestions and #1829 |
This update follows the suggestion to stop promoting religion=none as a suggested value in the religion field.
Problem: Offering 'Non-religious' as a clickable option for 'Religious Area' or 'Place of Worship' presets created a logical contradiction.
Fix: By removing none from the options list in religion.json, the editor no longer 'offers' this value as a button.
Existing data (like the 20,000 schools using this tag) remains valid and will still display the translated 'Non-religious' label, and mappers can still manually enter the tag if needed."
Fixes #1939