Skip to content

Conversation

@Dobe-Time
Copy link

AO3-6359 Fix Possible to delete the pseud that corresponds with your username if the capitalization or diacritics differ

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-6359

Purpose

What does this PR do?
Fixes issue AO3-6359 where it was possible to delete the pseud that corresponds to your username if you already had a pseud with the same spelling but different capitalization or diacritics, the fix was to add a new path to the psued update function for when a username is updated. This new path checks if the user already has a matching pseud and updates the capitalization and diacritics to match the new username.

Testing Instructions

How can the Archive's QA team verify that this is working as you intended?
Similar to replication instructions from the ticket except for step number 4 where delete is now not possible.

  1. Log in
  2. Create a pseud
    a. Hi, username! > My Preferences > Manage My Pseuds > New Pseud
    b. Fill in the “Name” field with a something that will also be valid as a username (and is not currently someone’s username), e.g. Issue6359Test
    • Usernames must consist of 3 to 40 characters (A-Z, a-z, _, 0-9 only), no spaces, and cannot begin or end with underscore ( _ )
      c. Press "Create Pseud"
  3. Change your username to a differently capitalized version of your new pseud
    a. Hi, username! > My Preferences > Change Username
    b. Fill in the “New user name” field with a differently capitalized version of your new pseud, e.g. issue6359test
    c. Fill in the “Password” field with your account password
    d. Press “Change Username”
  4. Attempt to delete the pseud from Step 2 (This is no longer possible)
    a. Hi, username! > My Preferences > Manage My Pseuds
    b. There should not be an option to delete the pseud

If you have a Jira account with access, please update or comment on the issue
with any new or missing testing instructions instead.

You can remove this section if there are already full testing instructions in the Jira issue.

References

Are there other relevant issues/pull requests/mailing list discussions? If not, you can remove this section.

Yes: Old closed pull request for the same issue: #4307 (Closed for being years old)
Thank you Sarken, Brianjaustin, and Tickinginstant for your comments on the above PR, I have attempted to address them all in this new PR.

Credit

Credit

Dobe He/Him
What name and pronouns should we use to credit you in the Archive of Our Own's Release Notes?

If you have a Jira account, please include the same name in the "Full name"
field on your Jira profile, so we can assign you the issues you're working on.

Please note that if you do not fill in this section, we will use your GitHub account name and
they/them pronouns.

…name if the capitalization or diacritics differ
…to AO3-6359

wq# Please enter a commit message to explain why this merge is necessary,
@sarken
Copy link
Collaborator

sarken commented Jan 5, 2026

I just wanted to say a quick thank you for picking this back up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants