mtg: Admin Rename with Rename reason, Admin log entry and mail
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- api, authentication, backend
Research direction
Start by reading services/mtg/GLOSSARY.md for the Rename and Admin log concepts, then trace the existing Self-Rename issue (#136) and the admin account page and endpoint. Map the endpoint, admin log, mail-gateway, HTTP tests, API spec generation, and i18n entry points. Done when all listed acceptance criteria pass, including locked accounts and refusing self-renames through the admin endpoint.
Written by the indexing model from the issue text.
Description
What to build
An Admin Renames another Account from the Account's page in the admin dashboard (see Rename, Admin log in services/mtg/GLOSSARY.md).
- Same username rules and uniqueness check as the Self-Rename (#136).
- A Rename reason is required and seen only by Admins.
- Locked Accounts can be Renamed by an Admin.
- Every Admin Rename writes one Admin log entry: acting Admin, affected Account's old username, the new username, when, and the reason. The admin log table shows it.
- The Account is mailed its new username (without the reason) through the mail-gateway, since Login and recovery both need the username. This deliberately differs from Lock, which sends no mail.
- The admin dashboard hides the action on the Admin's own Account and the backend refuses it there; Admins Rename themselves through the Self-Rename.
- No
renamecli subcommand.
Acceptance criteria
- Admin Renames another Account, including a locked one; the Account can log in with the new username
- Missing reason is refused
- Taken or invalid username is refused
- Admin log entry records old and new username and the reason; shown in the admin log table
- Mail with the new username goes to the Account's email, without the reason
- Rename of the Admin's own Account via the admin endpoint is refused; the UI hides the action there
- Non-Admins cannot use the endpoint
- Migration for the new Admin log action committed; HTTP tests cover the cases above; API spec and client regenerated; i18n keys added
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 1
- Avg merge
- 14h 36m
- Merged PRs (30d)
- 24
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from myOmikron/code
-
wayfinder:task
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
wayfinder:task
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
myOmikron/code#102 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
mtg: Self-Rename of an AccountPossibly taken @omikron-agent claimed this today. Openready-for-agent
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Maintainers usually reply within 1 day
-
Voice architectureOpenwayfinder:grilling
Difficulty 5/5 Over a week Newbie friendliness 20/100
Maintainers usually reply within 1 day
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
equinor/prisma-decision-web#919 ·
Maintainers usually reply within 1 day
-
[DC] OneLogin sync imports a partial user list when an API request failsPossibly taken @RaphaelFakhri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
bitwarden/directory-connector#1276 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
home-assistant/installer#324 ·
Maintainers usually reply within 1 day
-
Mondriaan
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
knaw-huc/textannoviz#733 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day