[openstreetmap/openstreetmap-website] Add openplaques:id support and refactor the formatters (#2621)

mmd notifications at github.com
Sat May 9 17:39:17 UTC 2020


The issue I see with this kind of code is that it doesn't really scale. Next week another groups wants to have their special tag du jour linked on osm.org, and we add up with more and more code.

My suggestion would be:

* have pattern matching and replacement rules stored for each tag in Wikidata (on osm wiki)
* write a script to manually pull relevant tag information 
* store updated config.yml file it as part of this repository

We already do something similar for  config/wiki_pages.yml. Maybe you could take a look how that is implemented. When different groups want their tag linkified we would only send them to Wikidata, and run the script afterwards. No more manual fiddling with Rails code.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2621#issuecomment-626210938
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200509/74444ea1/attachment.htm>


More information about the rails-dev mailing list