Page MenuHomePhabricator

[web] Allow account deletion for SIWE accounts
ClosedPublic

Authored by atul on Jan 23 2023, 9:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 26, 12:56 PM
Unknown Object (File)
Fri, Sep 6, 3:51 PM
Unknown Object (File)
Fri, Sep 6, 3:51 PM
Unknown Object (File)
Fri, Sep 6, 3:51 PM
Unknown Object (File)
Fri, Sep 6, 3:51 PM
Unknown Object (File)
Fri, Sep 6, 3:51 PM
Unknown Object (File)
Fri, Sep 6, 3:51 PM
Unknown Object (File)
Fri, Sep 6, 3:40 PM
Subscribers
None

Details

Summary
Test Plan
  1. Able to successfully delete SIWE account:

5fceb3.png (978×3 px, 331 KB)

38e782.png (632×1 px, 49 KB)

7d6526.png (978×3 px, 306 KB)

  1. "Traditional" account deletion continues to work as expected:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Jan 23 2023, 10:02 AM
atul edited the test plan for this revision. (Show Details)
atul added a reviewer: marcin.
ashoat requested changes to this revision.Jan 23 2023, 10:29 AM

The second screenshot you included was not something you changed. Can you update this diff to have the screenshot of the interface you actually changed?

web/settings/account-delete-modal.react.js
169 ↗(On Diff #21208)

This invariant is still here. There's no point to the conditional below. Pretty sure you'll crash if this is triggered

This revision now requires changes to proceed.Jan 23 2023, 10:29 AM

The second screenshot you included was not something you changed. Can you update this diff to have the screenshot of the interface you actually changed?

Yeah meant to attach the following:

38e782.png (632×1 px, 49 KB)

(before)

53afc3.png (798×1 px, 68 KB)

This revision is now accepted and ready to land.Jan 23 2023, 10:42 AM
web/settings/account-delete-modal.react.js
169 ↗(On Diff #21208)

Again, not sure how I missed that... crap

web/settings/account-delete-modal.react.js
76–81 ↗(On Diff #21233)

Tested with "traditional" account creation, had to modify this invariant to handle falsiness of empty string.

This revision was landed with ongoing or failed builds.Jan 24 2023, 9:53 AM
This revision was automatically updated to reflect the committed changes.