Skip to content

Auto-populate User.Number from Id when no phone number is provided - #408

Merged
kzu merged 1 commit into
mainfrom
dev/userid
May 2, 2026
Merged

Auto-populate User.Number from Id when no phone number is provided#408
kzu merged 1 commit into
mainfrom
dev/userid

Conversation

@kzu

@kzu kzu commented May 2, 2026

Copy link
Copy Markdown
Member

When constructing a User with a phone-number Id and no explicit number, Number is now automatically set to the normalized Id value. BSUID users are unaffected (Number stays null).

Adds four new tests verifying the new behavior:

  • Phone Id with no number arg populates Number
  • Explicit null number behaves the same as omitting it
  • Leading + in Id is stripped when auto-populating Number
  • BSUID users with no number keep Number as null

When constructing a User with a phone-number Id and no explicit number,
Number is now automatically set to the normalized Id value. BSUID users
are unaffected (Number stays null).

Adds four new tests verifying the new behavior:
- Phone Id with no number arg populates Number
- Explicit null number behaves the same as omitting it
- Leading + in Id is stripped when auto-populating Number
- BSUID users with no number keep Number as null
@kzu
kzu enabled auto-merge (rebase) May 2, 2026 02:05
@kzu

kzu commented May 2, 2026

Copy link
Copy Markdown
Member Author

223 passed 223 passed 22 skipped

🧪 Details on Ubuntu 24.04.4 LTS

from retest v1.1.0 on .NET 10.0.7 with 💜 by @devlooped

@kzu
kzu merged commit 03a696e into main May 2, 2026
4 checks passed
@kzu
kzu deleted the dev/userid branch May 2, 2026 02:07
@devlooped devlooped locked and limited conversation to collaborators Jun 2, 2026
@kzu kzu added the enhancement New feature or request label Jul 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant