[openstreetmap/openstreetmap-website] Adds description and author_id methods to Note (PR #5494)

Nenad Vujicic notifications at github.com
Mon Jan 13 10:46:16 UTC 2025


### Description
PR adds `description` and `author_id` (`author_ip` 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.

This PR is 1st from set of PRs described [here](https://github.com/openstreetmap/openstreetmap-website/pull/5485#pullrequestreview-2545467592).

### How has this been tested?
Automated unit tests and manual testing
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5494

-- Commit Summary --

  * Added description and author_id methods to Note
  * Added unit tests for new Note methods

-- File Changes --

    M app/models/note.rb (14)
    M test/models/note_test.rb (18)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5494.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5494.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5494
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5494 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250113/97eff678/attachment.htm>


More information about the rails-dev mailing list