<h3 dir="auto">Description</h3>
<p dir="auto">PR adds <code class="notranslate">description</code> and <code class="notranslate">author_id</code> (<code class="notranslate">author_ip</code> is already there) methods to Note model file. Methods use first comment for retrieving requested information. Also, adds unit tests for testing functionality of added methods.</p>
<p dir="auto">This PR is 1st from set of PRs described <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5485#pullrequestreview-2545467592" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5485/hovercard">here</a>.</p>
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">Automated unit tests and manual testing</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/5494'>https://github.com/openstreetmap/openstreetmap-website/pull/5494</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5494/commits/1cc0e59415f74509632600ec17291c6e1facdfdf" class="commit-link">1cc0e59</a> Added description and author_id methods to Note</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5494/commits/d83b9ad453566bffb25c832ab5083ac9454a56de" class="commit-link">d83b9ad</a> Added unit tests for new Note methods</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5494/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5494/files#diff-08ddccf408b18937e98b422e555eaf851c2a02c3ba815c5aeb8bc00efe65ecab">app/models/note.rb</a>
(14)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5494/files#diff-b93fe6b2fae5309f99ba81772f10cf26c2d05ce9eb923b430a03de6121951964">test/models/note_test.rb</a>
(18)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5494.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5494.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5494.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5494.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/5494">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIG3RGSCPGG5VQH4FD2KOKPRAVCNFSM6AAAAABVCJTAUGVHI2DSMVQWIX3LMV43ASLTON2WKOZSG44DGNRQHE3DINY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLL3MDOGGUSZXZ7GCSL2KOKPRA5CNFSM6AAAAABVCJTAUGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKL2UDF4.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/5494</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/5494",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5494",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>