[openstreetmap/openstreetmap-website] Enforce Not Null Constraints on Redaction Title and Description (PR #4566)

Ishmeet Singh notifications at github.com
Thu Mar 7 19:18:14 UTC 2024


> So how can #2033 happen then? How are the validations being bypassed?

Validations were added on November 6th 2018, while the issue was raised on October, I've checked and confirmed that even without the NOT NULL constraint we wont be able to create a redaction with empty title or description unless someone tries to create one through console, Since this is an very old issue (approx 5yrs) we can avoid adding the NOT NULL constraints (because Rails will handle that for us) and just update the test cases only.

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

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


More information about the rails-dev mailing list