Opened 5 years ago
Closed 5 years ago
#19835 closed enhancement (fixed)
cuisine=bbq should be corrected to barbecue
Reported by: | ferdi | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 20.09 |
Component: | Core validator | Version: | |
Keywords: | Cc: |
Description
the documented and de facto use is the long form
Attachments (0)
Change History (6)
follow-up: 3 comment:2 by , 5 years ago
Maybe just throw a warning if the cuisine tag contains bbq as a string Somewhere and ask people to manually replace that value ?
comment:3 by , 5 years ago
Replying to anonymous:
Maybe just throw a warning if the cuisine tag contains bbq as a string Somewhere and ask people to manually replace that value ?
Sure, a simple warning can always be thrown and a auto-fix with only bbq
as value should not be a problem.
comment:4 by , 5 years ago
Milestone: | → 20.09 |
---|---|
Priority: | minor → normal |
comment:5 by , 5 years ago
Replying to skyper:
How does an automatic fix of a multi-value value work? Think this is not working, atm.
This basically works:
*[cuisine *= bbq] { throwWarning: tr("{0} is deprecated", "cuisine=bbq"); suggestAlternative: "cuisine=barbecue"; group: tr("deprecated tagging"); fixAdd: concat("cuisine=", replace(tag("cuisine"), "bbq", "barbecue")) }
However in this case there is not only "bbq" as substring of the cuisine value but we have to care also about "BBQ" and cases like "korean_bbq". taginfo (type "bbq" in the values filter box) We should not replace "korean_bbq" by "korean_barbecue".
In the end it would be too complex to make the rules work with autofix for all possible combinations. I'll go with your comment:3.
How does an automatic fix of a multi-value value work? Think this is not working, atm.