Page MenuHomePhabricator

[identity] fix wallet account deletion bug
ClosedPublic

Authored by varun on Jun 20 2024, 11:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 4:56 AM
Unknown Object (File)
Fri, Oct 25, 1:15 PM
Unknown Object (File)
Oct 12 2024, 3:10 PM
Unknown Object (File)
Oct 12 2024, 3:10 PM
Unknown Object (File)
Oct 12 2024, 3:10 PM
Unknown Object (File)
Oct 12 2024, 3:10 PM
Unknown Object (File)
Aug 29 2024, 6:28 PM
Unknown Object (File)
Aug 20 2024, 5:30 AM
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.Jun 20 2024, 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.Jun 21 2024, 10:41 PM
This revision was automatically updated to reflect the committed changes.