[openstreetmap/openstreetmap-website] Use a state machine for user status (PR #3419)

Andy Allan notifications at github.com
Thu Jan 13 10:06:08 UTC 2022


> This signals to me that hiding is not really a state but a flag on the user. A bit like act_as_paranoid (and similar) did back in the day.

Yep, there's big questions about whether hiding and suspending and activating (confirming email) should be separated out here into different columns. For example, being suspended for having a spammy profile doesn't reflect on whether you have confirmed your email or not, but combining the two concepts (as we have now) leads to information loss.

But that might be digging myself a bit of a hole here. On one side, I'm just trying to implement self-deletion of accounts. But on the other, we might not need AASM at all if we moved some of these states into flags. Thoughts and advice welcome.

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

Message ID: <openstreetmap/openstreetmap-website/pull/3419/c1011982306 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220113/0ae6bb52/attachment-0001.htm>


More information about the rails-dev mailing list