[openstreetmap/openstreetmap-website] Make traces feature optional via traces_disabled setting (PR #7156)

Pablo Brasero notifications at github.com
Mon Jun 29 08:04:56 UTC 2026


pablobm left a comment (openstreetmap/openstreetmap-website#7156)

Actually, should have thought of this earlier: how about naming the setting in the positive (`traces_enabled`, default `true`) rather than the negative? I find negatives trickier to reason about, particularly when it comes to conditionals, be it `if !Setting.traces_disabled` or `unless Setting.traces_disabled`.

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

Message ID: <openstreetmap/openstreetmap-website/pull/7156/c4830260398 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260629/10890532/attachment.htm>


More information about the rails-dev mailing list