Skip to content

Fix tag search to also check addTags when searching by key=value#12258

Open
yorty001 wants to merge 2 commits into
openstreetmap:developfrom
yorty001:develop
Open

Fix tag search to also check addTags when searching by key=value#12258
yorty001 wants to merge 2 commits into
openstreetmap:developfrom
yorty001:develop

Conversation

@yorty001

@yorty001 yorty001 commented Apr 27, 2026

Copy link
Copy Markdown

Fixes #12179
Tag search was not checking addTags when matching key=value queries. This meant searching amenity=school would not find School Grounds, even though amenity=school is defined in its addTags.
Fixed by also checking addTags in the leadingTagKeyValues search logic in collection.js.

@matkoniecz matkoniecz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding also test to https://github.com/matkoniecz/iD/blob/develop/test/spec/presets/collection.js covering this change would be a good idea

@yorty001

Copy link
Copy Markdown
Author

Just checking whether there’s anything else needed for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tag search fails to find amenity=school, education=school works (tag search should also check addTags)

2 participants