<p dir="auto">Part one of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2610276342" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5283" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5283/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5283">#5283</a>. Creates the note subscription table and starts adding subscriptions for anyone who comments a note. These subscriptions are not yet used for anything, email notifications still go to all note commenters.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5284'>https://github.com/openstreetmap/openstreetmap-website/pull/5284</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5284/commits/0b9c7c13a1dad7b1528438150f0a94720b2f4323" class="commit-link">0b9c7c1</a>  Create note subscription table and model</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5284/commits/954e7b31e1ec0f47ad7000bf2a9a32af9206abd1" class="commit-link">954e7b3</a>  Subscribe users when they interact with notes</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5284/files">7 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5284/files#diff-6e9fe051c0ef757618e376ffe731dfca8d4960ef0838b7d6a05609b46ba0fad1">app/controllers/api/notes_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5284/files#diff-08ddccf408b18937e98b422e555eaf851c2a02c3ba815c5aeb8bc00efe65ecab">app/models/note.rb</a>
    (2)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5284/files#diff-5a2e0d396886f478466d18d998fb539450b5613643bfc18379a88f5f4fc3cc6a">app/models/note_subscription.rb</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5284/files#diff-9802ca3c9c4cf89904fd44bc114e35ebdf2c5dd3d5b645491e2b253e1afef29b">app/models/user.rb</a>
    (2)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5284/files#diff-f1c78a649790ada16ba0101aef0cb0c3fa8fd92bdde4cf076de4a753217f5a39">db/migrate/20241022141247_create_note_subscriptions.rb</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5284/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
    (42)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5284/files#diff-b4cc80ae5a4279eef2a7494cb8c489220ce03acaf36932b2042247df9d316908">test/controllers/api/notes_controller_test.rb</a>
    (115)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5284.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5284.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5284.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5284.diff</a></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/5284">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOML3CLKRB634Q73TLZ5EBQRAVCNFSM6AAAAABQRIOTM2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYTCOBSG43TGMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKUYWXUXSHWDSVJM33Z5EBQRA5CNFSM6AAAAABQRIOTM2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJXLKUCU.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/5284</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/5284",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5284",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>