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

Nenad Vujicic notifications at github.com
Wed Jan 15 11:53:29 UTC 2025


@nenad-vujicic commented on this pull request.



> @@ -36,6 +36,26 @@ class NoteComment < ApplicationRecord
   validates :event, :inclusion => %w[opened closed reopened commented hidden]
   validates :body, :length => { :maximum => 2000 }, :characters => true
 
+  # Return the note's description for first special comment (event is "opened")
+  # otherwise return the comment text
+  def tmp_body

Removed problematic routines and their usages. Failing test is probably transient, it passes on my side locally.

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

Message ID: <openstreetmap/openstreetmap-website/pull/5494/review/2552363853 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250115/0aa8ab96/attachment.htm>


More information about the rails-dev mailing list