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)
Mon, Nov 25, 2:06 AM
Unknown Object (File)
Fri, Nov 1, 9:36 PM
Unknown Object (File)
Fri, Nov 1, 12:51 PM
Unknown Object (File)
Wed, Oct 30, 3:30 PM
Unknown Object (File)
Mon, Oct 28, 10:35 AM
Unknown Object (File)
Oct 27 2024, 12:55 AM
Unknown Object (File)
Oct 27 2024, 12:55 AM
Unknown Object (File)
Oct 27 2024, 12:55 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