<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/36066?s=20&v=4" /><strong>pablobm</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6606#issuecomment-3660187507">(openstreetmap/openstreetmap-website#6606)</a></div>
<p dir="auto">I think this is now in a presentable state, even if objections could still appear. Notes:</p>
<ul dir="auto">
<li>The setting is still a <code class="notranslate">UserPreference</code>. Again, happy to move this to a new column <code class="notranslate">users.public_heatmap</code>, but wanted to make sure first.
<ul dir="auto">
<li>In particular, I seem to recall there were some concerns about things like accepting ToUs that can be only done on the website, so perhaps things like that should progressively be moved to locations accessible by the API? Just spitballing here. (/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/1ec5/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/1ec5">@1ec5</a>)</li>
</ul>
</li>
<li>It occurred to me that the routes to edit the profile are under <code class="notranslate">show</code> actions, when the convention would be to have them under <code class="notranslate">edit</code> actions. I've stuck to <code class="notranslate">show</code>, but perhaps this should be changed in a different PR?</li>
<li>I have not added system tests. I noticed these exist for the other profile settings (eg: <a href="https://github.com/openstreetmap/openstreetmap-website/blob/master/test/system/profile_company_change_test.rb"><code class="notranslate">test/system/profile_company_change_test.rb</code></a>, but I think they are redundant (we already cover them with controller tests) and slow down the test suite. I would remove all of them (in a separate PR). Thoughts?</li>
</ul>
<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/6606#issuecomment-3660187507">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIVEALX3FCO6CBPU6T4B7YNTAVCNFSM6AAAAACOTYJFYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNRQGE4DONJQG4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNT3ZOVWOTPEY3EUST4B7YNTA5CNFSM6AAAAACOTYJFYGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTW2FIDXG.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/6606/c3660187507</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/6606#issuecomment-3660187507",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6606#issuecomment-3660187507",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>