Skip to content

[feature]: Re-enable strict username validation#345

Merged
adrianq merged 2 commits intodevelopmentfrom
feat/reenable-strict-username-validation
May 4, 2026
Merged

[feature]: Re-enable strict username validation#345
adrianq merged 2 commits intodevelopmentfrom
feat/reenable-strict-username-validation

Conversation

@deeonwuli
Copy link
Copy Markdown
Contributor

@deeonwuli deeonwuli commented Apr 20, 2026

📌 References

📝 Implementation

  • New broken usernames (with spaces, /, etc.) are rejected before reaching DHIS2, fixing the downstream Android SDK login failure.

📹 Screenshots/Screen capture

Screen.Recording.2026-04-21.at.10.43.33.mov

🔥 Testing

#869cyeajx

@bundlemon
Copy link
Copy Markdown

bundlemon Bot commented Apr 20, 2026

BundleMon

No change in files bundle size

Groups updated (1)
Status Path Size Limits
Build Folder
./**/*
1.41MB (+123B +0.01%) +20%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@ifoche
Copy link
Copy Markdown
Member

ifoche commented Apr 20, 2026

@deeonwuli deeonwuli changed the title feat: re-enable strict username validation and update tests for exist… [feature]: Re-enable strict username validation Apr 21, 2026
@MiquelAdell MiquelAdell requested review from xurxodev and removed request for eperedo April 27, 2026 11:03
Copy link
Copy Markdown
Contributor

@eperedo eperedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. thanks @deeonwuli. Just a small note: DHIS2 API allows usernames that start with a dot:

Image

so those existing users will not be editable in our application.

I think this is pretty unlikely, but just as a note in case we face that problem in the future (I've tested on WIDP and MSF and none of the users starts with an invalid character)

@MiquelAdell MiquelAdell removed the request for review from xurxodev April 28, 2026 07:00
@adrianq adrianq self-requested a review April 28, 2026 07:03
@adrianq
Copy link
Copy Markdown
Member

adrianq commented Apr 30, 2026

@deeonwuli Do you think you can take care of @eperedo request? No rush...

@adrianq
Copy link
Copy Markdown
Member

adrianq commented May 4, 2026

@deeonwuli After talking to @MiquelAdell we are merging this PR so it makes it into the next release. Feel free to take care of the pending issue in another PR

@adrianq adrianq merged commit fac3e13 into development May 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants