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)
Thu, Jun 13, 5:45 PM
Unknown Object (File)
Fri, Jun 7, 1:48 PM
Unknown Object (File)
Tue, May 28, 8:52 AM
Unknown Object (File)
Sun, May 19, 1:08 AM
Unknown Object (File)
Sun, May 19, 12:41 AM
Unknown Object (File)
Sat, May 18, 9:11 PM
Unknown Object (File)
Sat, May 18, 1:49 PM
Unknown Object (File)
May 13 2024, 11:08 PM
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