[openstreetmap/openstreetmap-website] Enhanced the notes search endpoint (#1955)
notifications at github.com
Sat Aug 25 21:12:08 UTC 2018
Follow-up of #1953 and #1954:
The `search` 🔍 endpoint was enhanced to add the following features 🎉:
- get notes of a specific user 👨 (either by the `display_name` 📛 or the `id` 🆔)
- get notes of a specific time ⌚️ range (if no `to` (end time) parameter was given, it is automatically set to the current time)
- get the latest notes 📝 if no parameter at all was specified
I still could not figure out why the query filter does not work for the notes of a specific user 🤷♂️... (see [the code 💻](https://github.com/ENT8R/openstreetmap-website/blob/notes-search/app/controllers/notes_controller.rb#L275#L281) for more information ℹ️) Maybe someone else knows the issue just by looking at the code 😃...
This PR would fix #1194 and it is at least a step towards #832...
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* Enhanced the notes search endpoint with a few features
-- File Changes --
M app/controllers/notes_controller.rb (46)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev