Page MenuHomePhabricator

[identity] fix wallet account deletion bug
ClosedPublic

Authored by varun on Thu, Jun 20, 11:13 AM.
Tags
None
Referenced Files
F2124495: D12515.id41573.diff
Wed, Jun 26, 9:14 PM
Unknown Object (File)
Mon, Jun 24, 2:56 PM
Unknown Object (File)
Sun, Jun 23, 10:08 AM
Unknown Object (File)
Thu, Jun 20, 4:57 PM
Unknown Object (File)
Thu, Jun 20, 4:56 PM
Unknown Object (File)
Thu, Jun 20, 4:50 PM
Subscribers

Details

Summary

in D12335 i missed that get_username_and_password_file returns an error if the username attribute is missing, causing the whole RPC to fail. rather than modify that db method, i've decided to introduce a new one that just checks for the existence of OPAQUE registration data in a user item. the method returns an error if the lookup fails or if the user doesn't exist.

Resolves https://linear.app/comm/issue/ENG-8474/wallet-account-deletion-not-working

Test Plan

tested on staging -- confirmed that wallet account deletion now works

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun published this revision for review.Thu, Jun 20, 11:13 AM
services/identity/src/database.rs
742 ↗(On Diff #41572)

i'll remove the extra backtick

bartek added inline comments.
services/identity/src/database.rs
749–751 ↗(On Diff #41572)

any log what failed?

752–755 ↗(On Diff #41572)

Nit. No even need to mutate

This revision is now accepted and ready to land.Fri, Jun 21, 10:41 PM
This revision was automatically updated to reflect the committed changes.