-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't show value suggestions for full_name, loc_name, reg_name #7485
Comments
Sorry, we don't support tag-specific functionality in the raw tag editor. |
What do you mean? I don't understand. |
The "All tags" section is for editing plain keys and values. We don't have code like "if this is the |
I meant this: if you add manually |
@maro-21 Yes, iD automatically ignores the keys with the greatest number of unique values, including |
@joto (taginfo maintainer) has previously recommended that we avoid making this sort of query for common freeform keys like iD/modules/services/taginfo.js Lines 201 to 218 in a7ce956
(You can see the same list by sorting this table by the “Values” column.)
This heuristic was originally added to prevent slow taginfo requests from clogging the queue. But I suppose it can also be confusing for the user when they enter a value like “ABC” for a freeform tag and it gets autocompleted to “ABCD” just because that happens to already have been entered a bunch of times. One improvement would be to disable suggestions for a key where the most common value only makes up a very small proportion of the key’s usage. Conceptually, the number of distinct values for a tag is just a proxy for the key’s data type. Suggestions are most useful for enum-typed keys, less useful for numeric keys, and not particularly useful for freeform keys. In theory, we could query OSM Wikibase for keys whose key type (P9) is well-known values (Q8) and only present suggestions for those keys. But I’m not confident that all the enum-typed keys have been tagged with that statement in OSM Wikibase. There’s a discussion about adding support for additional data types; ideally, we could blacklist keys whose type is “string” or “numeric”. /ref #3955 (comment) |
I think we can also add dates to this list.
|
@maro-21 Yes, there are probably hundreds of keys we could technically exclude here, but I see relatively little benefit compared with the burden it would place on iD to maintain the list. A smart solution based on data type as suggested by @1ec5 sounds theoretically workable, but I personally don't see it as a high priority right now. The worst offenders are already skipped and users can otherwise ignore unhelpful suggestions 🤷♂️ |
There are more ;-) |
Do not show value suggestions for keys:
full_name
,loc_name
,reg_name
,short_name
,sorting_name
,artist_name
,nat_name
,long_name
,bridge:name
in All tags.The text was updated successfully, but these errors were encountered: