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, Apr 4, 10:36 AM
Unknown Object (File)
Thu, Mar 28, 7:40 PM
Unknown Object (File)
Thu, Mar 28, 7:38 PM
Unknown Object (File)
Mar 12 2024, 7:21 PM
Unknown Object (File)
Mar 7 2024, 6:27 AM
Unknown Object (File)
Mar 7 2024, 6:24 AM
Unknown Object (File)
Mar 7 2024, 3:17 AM
Unknown Object (File)
Mar 7 2024, 12:26 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