Page MenuHomePhabricator

create new aux user store action for clearing fids
ClosedPublic

Authored by will on Tue, Apr 16, 3:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 7:34 PM
Unknown Object (File)
Sat, Apr 27, 12:21 PM
Unknown Object (File)
Sat, Apr 27, 10:17 AM
Unknown Object (File)
Sat, Apr 27, 3:36 AM
Unknown Object (File)
Tue, Apr 23, 10:18 PM
Unknown Object (File)
Tue, Apr 23, 10:29 AM
Unknown Object (File)
Mon, Apr 22, 1:17 PM
Unknown Object (File)
Sun, Apr 21, 1:27 PM
Subscribers

Details

Summary

This new action types clears any aux user store users of fids by setting them all to null.

Depends on D11671

Test Plan

Dispatched this action successfully and confirmed all aux user store entries contained null fid values (they were strings before).

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I just added clearFarcasterFriendsFIDActionType for the case of a new fid, but I'm also thinking we might be able to run it when we disconnect our farcaster accounts?

will requested review of this revision.Tue, Apr 16, 3:36 PM

but I'm also thinking we might be able to run it when we disconnect our farcaster accounts?

What's the purpose of the aux user store? If it's for showing Farcaster IDs in user profiles, I guess we should be showing those regardless of whether the users are Farcaster friends, and regardless of whether the viewer even has associated a Farcaster account.

PS there are no reviewers on this diff

but I'm also thinking we might be able to run it when we disconnect our farcaster accounts?

What's the purpose of the aux user store? If it's for showing Farcaster IDs in user profiles, I guess we should be showing those regardless of whether the users are Farcaster friends, and regardless of whether the viewer even has associated a Farcaster account.

Got it. That answers my question. Was under the false impression this would only be for when we've connected our farcaster accounts.

Based on that, are any changes necessary here, or is this still ready to review?

but I'm also thinking we might be able to run it when we disconnect our farcaster accounts?

What's the purpose of the aux user store? If it's for showing Farcaster IDs in user profiles, I guess we should be showing those regardless of whether the users are Farcaster friends, and regardless of whether the viewer even has associated a Farcaster account.

Based on that, are any changes necessary here, or is this still ready to review?

This is all ready for review

Cool. It looks good to me, but I'd like somebody else to take a look at it as well

Looks good

Super minor nit, but we might want to settle on "farcaster friend" or "farcaster mutual" language? Doesn't really matter just a thought because we use farcaster_mutual for update_relationship

This revision is now accepted and ready to land.Wed, Apr 17, 9:37 AM

Removing the language of friends. This action type will encompass wiping all aux user store data irregardless of whether or not the user is friends with them or not.

Context: https://phab.comm.dev/D11639

Will land once I rename

rename clear to not include friends