[openstreetmap/openstreetmap-website] Require user names to be unique after unicode normalisation (PR #4405)

Tom Hughes notifications at github.com
Wed Dec 13 21:05:35 UTC 2023


As with the previous checks on case sensitivity this only affects new users, and changes to names of existing users.

Once this is merged and deployed we can drop the old lowercase index in a separate change.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Require user names to be unique after unicode normalisation

-- File Changes --

    M app/models/user.rb (17)
    A app/validators/normalized_uniqueness_validator.rb (18)
    A db/migrate/20231213182102_add_canonical_user_index.rb (7)
    M db/structure.sql (8)
    M test/models/user_test.rb (11)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/4405 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231213/f3c83dd5/attachment-0001.htm>


More information about the rails-dev mailing list