Page MenuHomePhabricator
Feed All Stories

Jul 9 2024

atul committed rCOMM1377f88ecd03: Revert "[lib] Deprecate `updateRolesAndPermissions`" (authored by atul).
Revert "[lib] Deprecate `updateRolesAndPermissions`"
Jul 9 2024, 1:15 PM
Harbormaster failed remote builds in B30238: Diff 42168 for D12599: [lib] Deprecate `updateRolesAndPermissions`!
Jul 9 2024, 12:50 PM
atul closed D12599: [lib] Deprecate `updateRolesAndPermissions`.
Jul 9 2024, 12:42 PM
atul committed rCOMMad00e8286547: [lib] Deprecate `updateRolesAndPermissions` (authored by atul).
[lib] Deprecate `updateRolesAndPermissions`
Jul 9 2024, 12:42 PM
atul added a comment to D12599: [lib] Deprecate `updateRolesAndPermissions`.

Safe to land out of order since it's purely rename

Jul 9 2024, 12:37 PM
atul updated the diff for D12599: [lib] Deprecate `updateRolesAndPermissions`.

resequence

Jul 9 2024, 12:36 PM
atul closed D12598: [lib] Deprecate `decodeMinimallyEncodedRawThreadInfo`.
Jul 9 2024, 12:29 PM
atul committed rCOMM7cb4f18418a2: [lib] Deprecate `decodeMinimallyEncodedRawThreadInfo` (authored by atul).
[lib] Deprecate `decodeMinimallyEncodedRawThreadInfo`
Jul 9 2024, 12:29 PM
atul added a comment to D12598: [lib] Deprecate `decodeMinimallyEncodedRawThreadInfo`.

Safe to land out of order since it's purely rename

Jul 9 2024, 12:28 PM
ginsu added inline comments to D12683: [native] update connect farcaster prompt to be less annyoying.
Jul 9 2024, 12:20 PM
atul updated the diff for D12598: [lib] Deprecate `decodeMinimallyEncodedRawThreadInfo`.

resequence

Jul 9 2024, 12:18 PM
atul added a comment to D12598: [lib] Deprecate `decodeMinimallyEncodedRawThreadInfo`.

Is the idea here that we'll never need to decode the permissions on RawThreadInfo again, since we don't store the permissions on the client?

Jul 9 2024, 12:15 PM
ginsu updated the diff for D12569: [lib/web] introduce handleCurrentUserFID to FarcasterDataHandler.

address comments

Jul 9 2024, 12:10 PM
ginsu added inline comments to D12683: [native] update connect farcaster prompt to be less annyoying.
Jul 9 2024, 12:03 PM
ginsu updated the diff for D12683: [native] update connect farcaster prompt to be less annyoying.

address comments

Jul 9 2024, 11:58 AM
ginsu added a comment to D12683: [native] update connect farcaster prompt to be less annyoying.

Don't we now need to consider NO_FID_METADATA in all places we fetch the FID? It seems like it would need to be checked at every place the FID is fetched.

In the linear task we said:

Don't prompt if the FID in Redux is null NONE

Based off this I was under the impression that we only want to keep NO_FID_METADATA something that is only in redux/sqlite and not in the identity service. By keeping NO_FID_METADATA only in redux/sqlite, we would re-show the farcaster prompt to the user if they ever logged out + logged back in on native, and my thinking was that this would act as another one time nudge to the user that they should connect their farcaster account to comm.

It seems like I may have misinterpreted this point. If I did I should be able to easily update this diff so that we also have NO_FID_METADATA stored in the identity service if the user decides not to connect their farcaster account

I think there's some confusion here. I'm not suggesting storing NO_FID_METADATA on identity.

Rather, I'm concerned that we don't have any updates to code that fetches/checks syncedMetadataNames.CURRENT_USER_FID here.

We are storing a new special value in that field, that should be treated equivalently to null/undefined. Don't we need to update the code that fetches/checks syncedMetadataNames.CURRENT_USER_FID so that it knows to treat this special value as null/undefined?

Let me know if I'm missing something!

Jul 9 2024, 11:58 AM
ashoat closed D12699: [lib] Export once at the end of DMOperationSpec files.
Jul 9 2024, 11:23 AM
ashoat committed rCOMM080df0257e0e: [lib] Export once at the end of DMOperationSpec files (authored by ashoat).
[lib] Export once at the end of DMOperationSpec files
Jul 9 2024, 11:23 AM
ashoat closed D12698: [native] Have BackgroundIdentityLoginHandler wait until LogInHandler.
Jul 9 2024, 11:22 AM
ashoat closed D12697: [lib][native] Introduce isLoggedInToIdentityAndAuthoritativeKeyserver.
Jul 9 2024, 11:22 AM
ashoat committed rCOMM999e0b785817: [native] Have BackgroundIdentityLoginHandler wait until LogInHandler (authored by ashoat).
[native] Have BackgroundIdentityLoginHandler wait until LogInHandler
Jul 9 2024, 11:22 AM
ashoat committed rCOMM4fed0c2eaecd: [lib][native] Introduce isLoggedInToIdentityAndAuthoritativeKeyserver (authored by ashoat).
[lib][native] Introduce isLoggedInToIdentityAndAuthoritativeKeyserver
Jul 9 2024, 11:22 AM
ashoat closed D12696: [lib][native] Introduce isLoggedInToAuthoritativeKeyserver.
Jul 9 2024, 11:22 AM
ashoat committed rCOMMa1d83bed05b9: [lib][native] Introduce isLoggedInToAuthoritativeKeyserver (authored by ashoat).
[lib][native] Introduce isLoggedInToAuthoritativeKeyserver
Jul 9 2024, 11:22 AM
ashoat closed D12700: [lib][native][web] Introduce useChildThreadInfosMap so drawer code can see ResolvedThreadInfos.
Jul 9 2024, 11:20 AM
ashoat closed D12701: [lib] Sort drawer items alphabetically.
Jul 9 2024, 11:20 AM
ashoat committed rCOMM8aae1e06152a: [lib][native][web] Introduce useChildThreadInfosMap so drawer code can see… (authored by ashoat).
[lib][native][web] Introduce useChildThreadInfosMap so drawer code can see…
Jul 9 2024, 11:19 AM
ashoat committed rCOMM225f99462576: [lib] Sort drawer items alphabetically (authored by ashoat).
[lib] Sort drawer items alphabetically
Jul 9 2024, 11:19 AM
Harbormaster failed remote builds in B30232: Diff 42155 for D12599: [lib] Deprecate `updateRolesAndPermissions`!
Jul 9 2024, 11:19 AM
Harbormaster failed remote builds in B30233: Diff 42156 for D12601: [lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo`!
Jul 9 2024, 11:19 AM
ashoat updated the diff for D12701: [lib] Sort drawer items alphabetically.

localeCompare

Jul 9 2024, 11:16 AM
ashoat added inline comments to D12701: [lib] Sort drawer items alphabetically.
Jul 9 2024, 11:15 AM
ashoat added inline comments to D12701: [lib] Sort drawer items alphabetically.
Jul 9 2024, 11:14 AM
Harbormaster failed remote builds in B30230: Diff 42153 for D12597: [lib] Fix construction of `ThinRawThreadInfo` in `createPendingThread`!
Jul 9 2024, 11:11 AM
Harbormaster failed remote builds in B30231: Diff 42154 for D12598: [lib] Deprecate `decodeMinimallyEncodedRawThreadInfo`!
Jul 9 2024, 11:11 AM
Harbormaster failed remote builds in B30229: Diff 42152 for D12594: [lib] Change type of `ThinRawThreadInfo.members` from `MemberInfoWithPermissions` to `MemberInfoSansPermissions`!
Jul 9 2024, 11:10 AM
ashoat resigned from D12704: [identity] fix issues with capitalized usernames in users and reserved usernames tables.

I don't feel qualified to review this diff... @will, could you maybe take a look?

Jul 9 2024, 11:07 AM
ashoat accepted D12706: [lib] introduce useJoinCommunity.

Didn't review the code closely since it's marked as a move diff

Jul 9 2024, 11:06 AM
atul updated the diff for D12601: [lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo`.

resolve merge conflicts

Jul 9 2024, 11:05 AM
atul updated the diff for D12599: [lib] Deprecate `updateRolesAndPermissions`.

resolve merge conflict

Jul 9 2024, 11:05 AM
atul updated the diff for D12598: [lib] Deprecate `decodeMinimallyEncodedRawThreadInfo`.

resolve merge conflicts

Jul 9 2024, 10:58 AM
atul updated the diff for D12597: [lib] Fix construction of `ThinRawThreadInfo` in `createPendingThread`.

resolve merge conflict

Jul 9 2024, 10:58 AM
atul updated the diff for D12594: [lib] Change type of `ThinRawThreadInfo.members` from `MemberInfoWithPermissions` to `MemberInfoSansPermissions`.

resolve merge conflict

Jul 9 2024, 10:57 AM
ashoat added inline comments to D12703: Transfer CSAT to IndexedDB from service worker and implement call to identity to query for inbound keys.
Jul 9 2024, 10:42 AM
ashoat added inline comments to D12703: Transfer CSAT to IndexedDB from service worker and implement call to identity to query for inbound keys.
Jul 9 2024, 10:41 AM
ashoat added inline comments to D12700: [lib][native][web] Introduce useChildThreadInfosMap so drawer code can see ResolvedThreadInfos.
Jul 9 2024, 10:39 AM
ashoat added inline comments to D12698: [native] Have BackgroundIdentityLoginHandler wait until LogInHandler.
Jul 9 2024, 10:38 AM
ashoat accepted D12695: Make client handlers that call authenticated identity RPC's gated on CSAT.
Jul 9 2024, 10:36 AM
ashoat accepted D12702: [keyserver] include keyserver url in the farcaster channel tag blob.

Looking at uploadInviteLinkBlob, this appears to be the same thing we do there

Jul 9 2024, 10:35 AM
ashoat added a comment to D12683: [native] update connect farcaster prompt to be less annyoying.

Don't we now need to consider NO_FID_METADATA in all places we fetch the FID? It seems like it would need to be checked at every place the FID is fetched.

In the linear task we said:

Don't prompt if the FID in Redux is null NONE

Based off this I was under the impression that we only want to keep NO_FID_METADATA something that is only in redux/sqlite and not in the identity service. By keeping NO_FID_METADATA only in redux/sqlite, we would re-show the farcaster prompt to the user if they ever logged out + logged back in on native, and my thinking was that this would act as another one time nudge to the user that they should connect their farcaster account to comm.

It seems like I may have misinterpreted this point. If I did I should be able to easily update this diff so that we also have NO_FID_METADATA stored in the identity service if the user decides not to connect their farcaster account

Jul 9 2024, 10:33 AM
ashoat accepted D12569: [lib/web] introduce handleCurrentUserFID to FarcasterDataHandler.

Both of my pieces of feedback below are also mentioned in D12685, so feel free to just address them there if it's easier

Jul 9 2024, 10:30 AM
ashoat requested changes to D12685: [lib] check if the user fid is still valid.

Sorry for another round, but I'm concerned that we'll never query identity for an FID if the user dismisses the Farcaster prompt.

Jul 9 2024, 10:23 AM
atul closed D12554: [lib] Remove `threadFrozenDueToBlock`, `threadOrParentThreadHasAdminRole` and `memberHadAdminPowers`.
Jul 9 2024, 10:22 AM
atul committed rCOMMe5ebff3685d6: [lib] Remove `threadFrozenDueToBlock`, `threadOrParentThreadHasAdminRole` and… (authored by atul).
[lib] Remove `threadFrozenDueToBlock`, `threadOrParentThreadHasAdminRole` and…
Jul 9 2024, 10:22 AM
atul updated the diff for D12554: [lib] Remove `threadFrozenDueToBlock`, `threadOrParentThreadHasAdminRole` and `memberHadAdminPowers`.

rebase and land

Jul 9 2024, 10:11 AM
atul closed D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.
Jul 9 2024, 10:09 AM
atul committed rCOMM993b4db8dd3c: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of… (authored by atul).
[keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of…
Jul 9 2024, 10:09 AM
ginsu requested review of D12706: [lib] introduce useJoinCommunity.
Jul 9 2024, 10:05 AM
atul updated the diff for D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

rebase and land

Jul 9 2024, 9:58 AM
atul added a comment to D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

We wouldn't want to (for instance) result in a thread being created with no messages, or an account being created with no chats.

Jul 9 2024, 9:57 AM
ashoat accepted D12705: [terraform] bump production identity service to 0.28.
Jul 9 2024, 9:48 AM
marcin requested review of D12703: Transfer CSAT to IndexedDB from service worker and implement call to identity to query for inbound keys.
Jul 9 2024, 9:45 AM
ashoat accepted D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

Therefore if the database result set is malformed and we aren't able to properly check if there's a member that's an admin in community root, shouldn't we opt to include the threadID in threadIDsWithDisabledPermissions rather than exclude it? Think it'd make sense to err on the side of narrower vs. more expansive permissions if there's an error case?

I think I'm misunderstanding the error scenarios and the logic needed to handle them. Personal instinct would be to throw some sort of error if there's malformed data vs. having to add logic to try to account for scenarios that shouldn't(?) occur?

Jul 9 2024, 9:43 AM
varun published D12705: [terraform] bump production identity service to 0.28 for review.
Jul 9 2024, 9:41 AM
varun published D12704: [identity] fix issues with capitalized usernames in users and reserved usernames tables for review.
Jul 9 2024, 9:40 AM
will requested review of D12689: [terraform] create comm database on aws rds startup.
Jul 9 2024, 6:56 AM
tomek updated the diff for D12650: Update extractKeyserverIDFromID so that it returns null for DMs.

Check the IDs in state sync specs

Jul 9 2024, 5:37 AM
tomek accepted D12701: [lib] Sort drawer items alphabetically.
Jul 9 2024, 5:21 AM
tomek accepted D12700: [lib][native][web] Introduce useChildThreadInfosMap so drawer code can see ResolvedThreadInfos.
Jul 9 2024, 5:16 AM
tomek accepted D12699: [lib] Export once at the end of DMOperationSpec files.
Jul 9 2024, 5:06 AM
tomek accepted D12698: [native] Have BackgroundIdentityLoginHandler wait until LogInHandler.
Jul 9 2024, 5:04 AM
tomek accepted D12697: [lib][native] Introduce isLoggedInToIdentityAndAuthoritativeKeyserver.
Jul 9 2024, 5:00 AM
tomek accepted D12696: [lib][native] Introduce isLoggedInToAuthoritativeKeyserver.
Jul 9 2024, 4:57 AM
marcin added inline comments to D12695: Make client handlers that call authenticated identity RPC's gated on CSAT.
Jul 9 2024, 4:26 AM
marcin added inline comments to D12693: [native][web] Add fts5 extension to SQLite.
Jul 9 2024, 4:21 AM
ginsu requested review of D12702: [keyserver] include keyserver url in the farcaster channel tag blob.
Jul 9 2024, 12:24 AM

Jul 8 2024

ashoat added inline comments to D12701: [lib] Sort drawer items alphabetically.
Jul 8 2024, 9:23 PM
ashoat requested review of D12701: [lib] Sort drawer items alphabetically.
Jul 8 2024, 9:16 PM
ashoat requested review of D12700: [lib][native][web] Introduce useChildThreadInfosMap so drawer code can see ResolvedThreadInfos.
Jul 8 2024, 9:15 PM
ashoat closed D12658: [lib] DMOperationSpec for CREATE_THREAD operation.
Jul 8 2024, 6:00 PM
ashoat committed rCOMM71c956344d9f: [lib] DMOperationSpec for CREATE_THREAD operation (authored by ashoat).
[lib] DMOperationSpec for CREATE_THREAD operation
Jul 8 2024, 6:00 PM
ashoat requested review of D12699: [lib] Export once at the end of DMOperationSpec files.
Jul 8 2024, 5:58 PM
ashoat updated the diff for D12658: [lib] DMOperationSpec for CREATE_THREAD operation.

Addressed all feedback. Decided to create a separate create_sidebar spec

Jul 8 2024, 5:39 PM
ginsu added a comment to D12683: [native] update connect farcaster prompt to be less annyoying.

Don't we now need to consider NO_FID_METADATA in all places we fetch the FID? It seems like it would need to be checked at every place the FID is fetched.

Jul 8 2024, 4:41 PM
ginsu updated the summary of D12569: [lib/web] introduce handleCurrentUserFID to FarcasterDataHandler.
Jul 8 2024, 4:25 PM
ginsu added inline comments to D12685: [lib] check if the user fid is still valid.
Jul 8 2024, 4:12 PM
atul updated the diff for D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

JK, this should be the correct logic. Think I got thrown off by

Jul 8 2024, 4:01 PM
ginsu updated the diff for D12685: [lib] check if the user fid is still valid.

forgot to save/commit changes

Jul 8 2024, 4:01 PM
ginsu attached a referenced file: F2214147: Screenshot 2024-07-08 at 6.47.51 PM.png.
Jul 8 2024, 3:59 PM
Harbormaster failed remote builds in B30213: Diff 42133 for D12685: [lib] check if the user fid is still valid!
Jul 8 2024, 3:59 PM
ginsu added inline comments to D12685: [lib] check if the user fid is still valid.
Jul 8 2024, 3:55 PM
ginsu updated the diff for D12685: [lib] check if the user fid is still valid.

address comments

Jul 8 2024, 3:55 PM
atul added a comment to D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

Just jotting down my understanding

Jul 8 2024, 3:42 PM
ginsu updated the diff for D12569: [lib/web] introduce handleCurrentUserFID to FarcasterDataHandler.

update

Jul 8 2024, 3:21 PM
ginsu updated the test plan for D12569: [lib/web] introduce handleCurrentUserFID to FarcasterDataHandler.
Jul 8 2024, 2:45 PM
atul planned changes to D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

Planning changes to do another read through logic

Jul 8 2024, 2:42 PM
ginsu requested review of D12569: [lib/web] introduce handleCurrentUserFID to FarcasterDataHandler.

If the network issue gets triggered by the keyserver connection status cycling, then we'll want to add some condition to eg. make sure it only runs once per app start / foreground event. If that's the case, please re-request review. Otherwise it looks good to land!

Jul 8 2024, 2:41 PM
ginsu updated the diff for D12569: [lib/web] introduce handleCurrentUserFID to FarcasterDataHandler.

fix network call getting triggered when client disconnect with the keyserver socket

Jul 8 2024, 2:39 PM
atul added a comment to D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

Passing back to figure out what to do if communityMembersToRole isn't present.

Jul 8 2024, 2:38 PM
atul added inline comments to D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.
Jul 8 2024, 2:28 PM