Page MenuHomePhabricator

[identity] db method to check if username is taken
ClosedPublic

Authored by varun on Apr 19 2023, 12:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 7:08 PM
Unknown Object (File)
Sun, Dec 15, 7:08 PM
Unknown Object (File)
Sun, Dec 15, 7:08 PM
Unknown Object (File)
Sun, Dec 15, 7:07 PM
Unknown Object (File)
Sun, Dec 15, 7:02 PM
Unknown Object (File)
Wed, Dec 11, 8:51 PM
Unknown Object (File)
Thu, Dec 5, 2:14 AM
Unknown Object (File)
Thu, Dec 5, 1:47 AM
Subscribers

Details

Summary

pretty straightforward... this diff adds a DB method that checks if
a username is taken. the implementation in D7365 wasn't exactly correct...
we can't call get_item with a secondary index, so we have to call query instead

Test Plan

called the method from main and confirmed that it returned the
correct bool

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable