<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">
  <blockquote>
<p dir="auto">I would also interested in what the next step will be.</p>
</blockquote>
<p dir="auto">At the moment, the plan is following:</p>
<ol dir="auto">
<li>Perform data migration</li>
<li>If we succeeded to migrate all notes, remove optional using records from first special comment, otherwise we'll have to leave some fallback mechanism</li>
<li>Create DB table <code class="notranslate">old_notes</code> which will store note versions and update Note model with appropriate associations</li>
</ol>
<ul dir="auto">
<li>This will be decomposed into several PRs</li>
<li>Perhaps this is good place to discuss how to apply <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2833586047" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5619" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5619/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5619">#5619</a> to notes tables (perhaps use <code class="notranslate">notes_versions</code> instead of <code class="notranslate">old_notes</code>?)</li>
</ul>
<ol start="4" dir="auto">
<li>Add creating versions on notes actions (create, reopen, close, ..)</li>
<li>Populate <code class="notranslate">note_versions</code> from <code class="notranslate">note_comments</code></li>
<li>Create helper routine which will generate list of comments (i.e. discussion, used in left side-bar, rss feed, xml / json files, ..) from <code class="notranslate">note_versions</code> table and from <code class="notranslate">note_comments</code> table (but using only note comments with non-blank bodies</li>
<li>Replace displaying / using discussions with helper routine</li>
<li>Remove column <code class="notranslate">event</code> from <code class="notranslate">note_comments</code> table and comments with blank bodies</li>
<li>.. continue with adding note tags ..</li>
</ol>
<p dir="auto">I'm aware this plan is full of flaws and there are multiple points which should be further discussed / defined, so everyone's comment is very welcome!</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/5667#issuecomment-2662571772">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMUBSKY6B6QPRS5HML2QGVTHAVCNFSM6AAAAABXCOPTA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRSGU3TCNZXGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMSDGXKDHZLPCJF6U32QGVTHA5CNFSM6AAAAABXCOPTA2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU6WOPPY.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/5667/c2662571772</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
</span>


<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img alt="nenad-vujicic" height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/25298521?s=20&v=4" /><strong>nenad-vujicic</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5667#issuecomment-2662571772">(openstreetmap/openstreetmap-website#5667)</a></div>
<blockquote>
<p dir="auto">I would also interested in what the next step will be.</p>
</blockquote>
<p dir="auto">At the moment, the plan is following:</p>
<ol dir="auto">
<li>Perform data migration</li>
<li>If we succeeded to migrate all notes, remove optional using records from first special comment, otherwise we'll have to leave some fallback mechanism</li>
<li>Create DB table <code class="notranslate">old_notes</code> which will store note versions and update Note model with appropriate associations</li>
</ol>
<ul dir="auto">
<li>This will be decomposed into several PRs</li>
<li>Perhaps this is good place to discuss how to apply <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2833586047" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5619" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5619/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5619">#5619</a> to notes tables (perhaps use <code class="notranslate">notes_versions</code> instead of <code class="notranslate">old_notes</code>?)</li>
</ul>
<ol start="4" dir="auto">
<li>Add creating versions on notes actions (create, reopen, close, ..)</li>
<li>Populate <code class="notranslate">note_versions</code> from <code class="notranslate">note_comments</code></li>
<li>Create helper routine which will generate list of comments (i.e. discussion, used in left side-bar, rss feed, xml / json files, ..) from <code class="notranslate">note_versions</code> table and from <code class="notranslate">note_comments</code> table (but using only note comments with non-blank bodies</li>
<li>Replace displaying / using discussions with helper routine</li>
<li>Remove column <code class="notranslate">event</code> from <code class="notranslate">note_comments</code> table and comments with blank bodies</li>
<li>.. continue with adding note tags ..</li>
</ol>
<p dir="auto">I'm aware this plan is full of flaws and there are multiple points which should be further discussed / defined, so everyone's comment is very welcome!</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/5667#issuecomment-2662571772">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMUBSKY6B6QPRS5HML2QGVTHAVCNFSM6AAAAABXCOPTA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRSGU3TCNZXGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMSDGXKDHZLPCJF6U32QGVTHA5CNFSM6AAAAABXCOPTA2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU6WOPPY.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/5667/c2662571772</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/5667#issuecomment-2662571772",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5667#issuecomment-2662571772",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>