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

Tom Hughes notifications at github.com
Mon Sep 10 08:46:11 UTC 2018


No that's not what he said. What he said is that it assumes the data is referentially correct - there are a number of ways you could load a single country and have if meet that definition:

* You could load those objects outside the country that objects in the country refer to
* You could remove references from objects in the country to other objects that aren't present

You have used an extract which doesn't do either of those things (because they're hard to do) and hence you have a problem.

In general the API database does not really make any special attempt to support imports at all - it assumes that you will start an empty database and that it will be in control of ensuring that referential integrity is maintained. There are, to my knowledge, no tools for easily importing a referentially correct extract.

-- 
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-419835904
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180910/89385de8/attachment.html>


More information about the rails-dev mailing list