Page MenuHomePhabricator

[identity] fix wallet account deletion bug
ClosedPublic

Authored by varun on Jun 20 2024, 11:13 AM.
Tags
None
Referenced Files
F3487286: D12515.id41651.diff
Wed, Dec 18, 7:30 AM
F3487284: D12515.id41572.diff
Wed, Dec 18, 7:30 AM
F3487268: D12515.id.diff
Wed, Dec 18, 7:30 AM
F3487255: D12515.diff
Wed, Dec 18, 7:30 AM
Unknown Object (File)
Nov 3 2024, 4:56 AM
Unknown Object (File)
Oct 25 2024, 1:15 PM
Unknown Object (File)
Oct 12 2024, 3:10 PM
Unknown Object (File)
Oct 12 2024, 3:10 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.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.