HomePhabricator

Add a new UserNameUtils service

Description

Add a new UserNameUtils service

This replaces User::isValidUserName, ::isUsableName, ::isCreatableName,
::getCanonicalName, and ::isIP.

Unlike User::isIP, UserNameUtils::isIP will not return true
for IPv6 ranges.

UserNameUtils::isIPRange, like User::isIPRange, accepts a name and
simply calls IPUtils::isValidRange.

User::isValidUserName, ::isUsableName, ::isCreatableName,
::getCanonical, ::isIP, and ::isValidRange are all soft deprecated

A follow up patch will add this to the release notes, to avoid merge
conflicts.

Bug: T245231
Bug: T239527
Change-Id: I46684bc492bb74b728ff102971f6cdd4d746a50a

Details

Provenance
DannyS712Authored on Feb 23 2020, 11:52 PM
Parents
rMWbddb01d35a2a: Merge "Purge expired watchlist items"
Branches
Unknown
Tags
Unknown
ChangeId
I46684bc492bb74b728ff102971f6cdd4d746a50a