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
F1788638: D7531.id25393.diff
Sun, May 19, 1:08 AM
F1788101: D7531.id25470.diff
Sun, May 19, 12:41 AM
F1787534: D7531.id.diff
Sat, May 18, 9:11 PM
F1785227: D7531.id25407.diff
Sat, May 18, 1:49 PM
Unknown Object (File)
Mon, May 13, 11:08 PM
Unknown Object (File)
Mon, May 13, 11:03 PM
Unknown Object (File)
Mon, May 6, 2:18 AM
Unknown Object (File)
Apr 4 2024, 10:36 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
No Lint Coverage
Unit
No Test Coverage