<p></p>
<p><b>@atomoil</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3301#discussion_r923895993">lib/osm_community_index.rb</a>:</p>
<pre style='color:#555'>> @@ -0,0 +1,12 @@
+module OsmCommunityIndex
+ require "yaml"
+
+ def self.community_index
+ @community_index ||= community_index_from_json
+ end
+
+ def self.community_index_from_json
+ json_file = Rails.root.join("node_modules/osm-community-index/dist/resources.json")
</pre>
<p dir="auto">Thanks for taking a look <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/openbrian/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/openbrian">@openbrian</a> (and sorry for the delay replying <g-emoji class="g-emoji" alias="grimacing" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f62c.png">😬</g-emoji>). My intention with using Open Community Index was to follow the "single source of truth" principle. OCI already have the data we need to render the page on osm.org, so seems rude not to try to use it and share data across the OSM ecosystem. I do appreciate that a shorter-term solution of just hardcoding the data would have been easier to achieve, and we could always fall back to that if this approach doesn't pan out.</p>
<blockquote>
<p dir="auto">Maybe OSM should be the system of record for communities.</p>
</blockquote>
<p dir="auto">Do you mean OCI or do you have something else in mind (if so I'd love to hear what you're thinking)?</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#discussion_r923895993">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJAC66GEXK2LWUGD3TVUXHV3ANCNFSM5CXUIRLQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLI5BOAK3HBMEKV5ICLVUXHV3A5CNFSM5CXUIRL2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOHYSNWEA.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/review/1042602768</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#discussion_r923895993",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3301#discussion_r923895993",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>