<p></p>
<blockquote>
<blockquote>
<p dir="auto">or a gem that covers this</p>
</blockquote>
<p dir="auto">I've come across <a href="https://github.com/byroot/frozen_record">https://github.com/byroot/frozen_record</a> today, which is really interesting - creating read-only models from yaml and json files, so at a high level it's what we're looking for. I'll have a look and think about whether it will help, since we don't have a one-to-one mapping between the layout of the data in the json files and the structure of the data that we need. But it could be promising.</p>
</blockquote>
<p dir="auto">ooo yes this looks very interesting. This is exactly what I was hoping existed (creating rails-compatible data models but using a static file instead of a database). Open Community Index has far more data than we need to model, but from reading that link it sounds like a custom backend could be used to produce smaller records. It <em>should</em> be a case of shifting the existing code to a different context, so in theory shouldn't be a big job. I am away until start of August but I'm happy to take a look when I'm back.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3301#issuecomment-1188370298">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNIZZHRXSIMH6XHFF3VUXITHANCNFSM5CXUIRLQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMVOS62RGRMIQL4B2TVUXITHA5CNFSM5CXUIRL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI3KRO6Q.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/3301/c1188370298</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3301#issuecomment-1188370298",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3301#issuecomment-1188370298",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>