Page MenuHomePhabricator

create new aux user store action for clearing fids
ClosedPublic

Authored by will on Apr 16 2024, 3:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 12:35 AM
Unknown Object (File)
Sat, Nov 9, 4:34 AM
Unknown Object (File)
Sun, Nov 3, 7:42 AM
Unknown Object (File)
Sat, Nov 2, 12:42 AM
Unknown Object (File)
Oct 25 2024, 1:14 AM
Unknown Object (File)
Oct 15 2024, 5:15 PM
Unknown Object (File)
Oct 15 2024, 12:56 AM
Unknown Object (File)
Oct 11 2024, 1:45 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
Branch
sqlite/farcaster-friends
Lint
No Lint Coverage
Unit
No Test Coverage

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.Apr 16 2024, 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.Apr 17 2024, 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