<p>Follow-up of <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="354019450" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1953" href="https://github.com/openstreetmap/openstreetmap-website/pull/1953">#1953</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="354028998" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1954" href="https://github.com/openstreetmap/openstreetmap-website/pull/1954">#1954</a>:<br>
The <code>search</code> <g-emoji class="g-emoji" alias="mag" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f50d.png">🔍</g-emoji> endpoint was enhanced to add the following features <g-emoji class="g-emoji" alias="tada" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f389.png">🎉</g-emoji>:</p>
<ul>
<li>get notes of a specific user <g-emoji class="g-emoji" alias="man" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f468.png">👨</g-emoji> (either by the <code>display_name</code> <g-emoji class="g-emoji" alias="name_badge" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f4db.png">📛</g-emoji> or the  <code>id</code> <g-emoji class="g-emoji" alias="id" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f194.png">🆔</g-emoji>)</li>
<li>get notes of a specific time <g-emoji class="g-emoji" alias="watch" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/231a.png">⌚ī¸</g-emoji> range (if no <code>to</code> (end time) parameter was given, it is automatically set to the current time)</li>
<li>get the latest notes <g-emoji class="g-emoji" alias="memo" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> if no parameter at all was specified</li>
</ul>
<p>I still could not figure out why the query filter does not work for the notes of a specific user <g-emoji class="g-emoji" alias="man_shrugging" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f937-2642.png">🤷‍♂ī¸</g-emoji>... (see <a href="https://github.com/ENT8R/openstreetmap-website/blob/notes-search/app/controllers/notes_controller.rb#L275#L281">the code <g-emoji class="g-emoji" alias="computer" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f4bb.png">đŸ’ģ</g-emoji></a> for more information <g-emoji class="g-emoji" alias="information_source" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/2139.png">ℹī¸</g-emoji>) Maybe someone else knows the issue just by looking at the code <g-emoji class="g-emoji" alias="smiley" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f603.png">😃</g-emoji>...<br>
This PR would <span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #1194.">fix</span> <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="144321894" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1194" href="https://github.com/openstreetmap/openstreetmap-website/issues/1194">#1194</a> and it is at least a step towards <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="48080268" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/832" href="https://github.com/openstreetmap/openstreetmap-website/issues/832">#832</a>...</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/1955'>https://github.com/openstreetmap/openstreetmap-website/pull/1955</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Enhanced the notes search endpoint with a few features</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1955/files#diff-0">app/controllers/notes_controller.rb</a>
    (46)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/1955.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/1955.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/1955.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/1955.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1955">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLQjzxQ3b-YmDN4Ib4qG0XDVblrJcks5uUb2ogaJpZM4WMidA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLR8gihM9NTfvykCLETCGULg8LeA9ks5uUb2ogaJpZM4WMidA.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Enhanced the notes search endpoint (#1955)"}],"action":{"name":"View Pull Request","url":"https://github.com/openstreetmap/openstreetmap-website/pull/1955"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/1955",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/1955",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Enhanced the notes search endpoint (#1955)",
"sections": [
{
"text": "",
"activityTitle": "**ENT8R**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@ENT8R",
"facts": [

]
},
{
"title": "Commit Summary",
"facts": [
{
"name": "8532405",
"value": "Enhanced the notes search endpoint with a few features"
}
]
},
{
"title": "File Changes",
"facts": [
{
"name": "Modified",
"value": "[app/controllers/notes_controller.rb](https://github.com/openstreetmap/openstreetmap-website/pull/1955/files#diff-0) (46 changes)"
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1955,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close pull request",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"PullRequestClose\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"pullRequestId\": 1955\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/openstreetmap-website/pull/1955"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/openstreetmap-website/pull/1955.patch"
}
],
"@type": "OpenUri",
"name": "View patch"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/openstreetmap-website/pull/1955.diff"
}
],
"@type": "OpenUri",
"name": "View diff"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 372385600\n}"
}
],
"themeColor": "26292E"
}
]</script>