[openstreetmap/openstreetmap-website] ActionView::Template::Error (undefined method `redacted?' for nil:NilClass) in app/views/browse/_relation_member.html.erb (#1988)

Andy Allan notifications at github.com
Mon Sep 10 08:27:05 UTC 2018


The extracts provided by Geofabrik are not "referentially complete" - that is, they contain relations with references to members which are not included in the extract. For example, the relation that you mention (2220322) has way 398377196 as a member, but that way is not included in the extract.

The api and website code is not designed to cope with the database being in an inconsistent state - that's why you get the server error.

The way to fix this is to pre-prepare the extract to avoid having any referential integrity problems. I'm not sure off the top of my head if there's a script available for this - suggestions welcome!

-- 
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/issues/1988#issuecomment-419829951
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180910/fef7be4b/attachment-0001.html>


More information about the rails-dev mailing list