Page MenuHomePhorge
Feed Search

Jul 17 2024

atul closed D12756: [lib] Move `stripPermissionsFromMemberInfo` out of `...-types.js` file.
Jul 17 2024, 9:05 PM
atul committed rCOMMdc0975f965cb: [lib] Move `stripPermissionsFromMemberInfo` out of `...-types.js` file.
Jul 17 2024, 9:05 PM
atul added a comment to D12756: [lib] Move `stripPermissionsFromMemberInfo` out of `...-types.js` file.

Ran yarn eslint:all, yarn flow:all, and yarn jest:all locally and confirmed that they all passed without issue. Will wait for ESLint & Flow & Jest workflow to pass before landing.

Jul 17 2024, 8:56 PM
atul updated the diff for D12756: [lib] Move `stripPermissionsFromMemberInfo` out of `...-types.js` file.

cherry-pick and land, validator test should pass now

Jul 17 2024, 8:53 PM
atul closed D12787: [lib] Add `memberInfoSansPermissionsValidator` to `convertClientDBThreadInfoToRawThreadInfo`.
Jul 17 2024, 8:52 PM
atul committed rCOMM1a4d31715739: [lib] Add `memberInfoSansPermissionsValidator` to….
Jul 17 2024, 8:52 PM
atul updated the diff for D12787: [lib] Add `memberInfoSansPermissionsValidator` to `convertClientDBThreadInfoToRawThreadInfo`.

cherry-pick and land

Jul 17 2024, 8:48 PM
atul added a comment to D12787: [lib] Add `memberInfoSansPermissionsValidator` to `convertClientDBThreadInfoToRawThreadInfo`.

Can also cherry-pick and land this to simplify stack before rebasing and addressing all feedback.

Jul 17 2024, 8:47 PM
atul closed D12758: [lib] Introduce `memberInfoSansPermissionsValidator` and consume in `rawThreadInfoValidator`.
Jul 17 2024, 8:37 PM
atul committed rCOMM5029a29dfb30: [lib] Introduce `memberInfoSansPermissionsValidator` and consume in….
Jul 17 2024, 8:37 PM
atul requested review of D12594: [lib] Change type of `ThinRawThreadInfo.members` from `MemberInfoWithPermissions` to `MemberInfoSansPermissions`.

Hmm looks like a bunch of Flow errors

Jul 17 2024, 8:03 PM
atul requested review of D12787: [lib] Add `memberInfoSansPermissionsValidator` to `convertClientDBThreadInfoToRawThreadInfo`.
Jul 17 2024, 7:53 PM
atul updated the diff for D12758: [lib] Introduce `memberInfoSansPermissionsValidator` and consume in `rawThreadInfoValidator`.

cherry-pick off master

Jul 17 2024, 7:50 PM
atul added a comment to D12758: [lib] Introduce `memberInfoSansPermissionsValidator` and consume in `rawThreadInfoValidator`.

Going to go ahead and try cherry-picking this onto master to fix the failing validator unit test and get rest of stack "more green."

Jul 17 2024, 7:43 PM
atul updated the diff for D12594: [lib] Change type of `ThinRawThreadInfo.members` from `MemberInfoWithPermissions` to `MemberInfoSansPermissions`.

rebase, look like there are no ESLint issues. There's failing validator that gets fixed in later diff... though maybe it makes sense to cherry-pick D12758 and land it to resolve failing validator test for rest of stack.

Jul 17 2024, 7:41 PM
atul added inline comments to D12763: [lib] Introduce `stripMemberPermissionsFromRawThreadInfo`.
Jul 17 2024, 7:33 PM
atul added a comment to D12758: [lib] Introduce `memberInfoSansPermissionsValidator` and consume in `rawThreadInfoValidator`.

But it's inappropriate for use on the client, where we don't expect the keyserver to ever respond with the legacy format.

Jul 17 2024, 7:30 PM

Jul 16 2024

atul published D12779: [keyserver] Strip `member.permissions` for `FUTURE_CODE_VERSION` clients for review.
Jul 16 2024, 9:49 PM
atul requested review of D12763: [lib] Introduce `stripMemberPermissionsFromRawThreadInfo`.
Jul 16 2024, 1:52 AM

Jul 15 2024

atul published D12758: [lib] Introduce `memberInfoSansPermissionsValidator` and consume in `rawThreadInfoValidator` for review.
Jul 15 2024, 8:04 PM
atul requested review of D12756: [lib] Move `stripPermissionsFromMemberInfo` out of `...-types.js` file.
Jul 15 2024, 7:24 PM
atul requested review of D12733: [lib] Deprecate `minimallyEncodeRawThreadInfo`.

Second: it looks like there's a Flow error here that doesn't show up in the parent diff. Any context?

Jul 15 2024, 6:50 PM
atul added a comment to D12733: [lib] Deprecate `minimallyEncodeRawThreadInfo`.

First: is rawThreadInfoFromServerThreadInfo just for the shimming logic that handles old clients?

Jul 15 2024, 6:48 PM
atul updated the diff for D12722: [lib] Add `invariant` to suppress `flow` issue in `getPushUserInfo`.

address ESLint issues

Jul 15 2024, 6:45 PM
atul published D12755: [lib] Add `flow` suppression to `deprecatedMinimallyEncodeRawThreadInfo` for review.
Jul 15 2024, 6:39 PM

Jul 11 2024

atul requested review of D12733: [lib] Deprecate `minimallyEncodeRawThreadInfo`.
Jul 11 2024, 9:16 PM

Jul 10 2024

atul published D12722: [lib] Add `invariant` to suppress `flow` issue in `getPushUserInfo` for review.
Jul 10 2024, 9:44 PM

Jul 9 2024

atul updated the diff for D12597: [lib] Fix construction of `ThinRawThreadInfo` in `createPendingThread`.

rebase after resequence

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

rebase after resequence

Jul 9 2024, 9:02 PM
atul closed D12601: [lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo`.
Jul 9 2024, 8:54 PM
atul committed rCOMMeae3437bda18: [lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo`.
Jul 9 2024, 8:54 PM
atul updated the diff for D12601: [lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo`.

resequence

Jul 9 2024, 8:47 PM
atul added a comment to D12601: [lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo`.

I think it's better to have type suppressions than to have to maintain the old set of types indefinitely. This makes sense to me

Jul 9 2024, 8:29 PM
atul closed D12599: [lib] Deprecate `updateRolesAndPermissions`.
Jul 9 2024, 8:27 PM
atul committed rCOMMfc1e4abe9c83: [lib] Deprecate `updateRolesAndPermissions`.
Jul 9 2024, 8:27 PM
atul added a comment to D12599: [lib] Deprecate `updateRolesAndPermissions`.

JK, the ESLint issue was in revision one before the one that landed. Re-landing.

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

re-open to address eslint thing

Jul 9 2024, 8:17 PM
atul reopened D12599: [lib] Deprecate `updateRolesAndPermissions`.
Jul 9 2024, 8:17 PM
atul added a reverting change for D12599: [lib] Deprecate `updateRolesAndPermissions`: rCOMM1377f88ecd03: Revert "[lib] Deprecate `updateRolesAndPermissions`".
Jul 9 2024, 8:15 PM
atul added a reverting change for rCOMMad00e8286547: [lib] Deprecate `updateRolesAndPermissions`: rCOMM1377f88ecd03: Revert "[lib] Deprecate `updateRolesAndPermissions`".
Jul 9 2024, 8:15 PM
atul committed rCOMM1377f88ecd03: Revert "[lib] Deprecate `updateRolesAndPermissions`".
Jul 9 2024, 8:15 PM
atul closed D12599: [lib] Deprecate `updateRolesAndPermissions`.
Jul 9 2024, 7:42 PM
atul committed rCOMMad00e8286547: [lib] Deprecate `updateRolesAndPermissions`.
Jul 9 2024, 7: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, 7:37 PM
atul updated the diff for D12599: [lib] Deprecate `updateRolesAndPermissions`.

resequence

Jul 9 2024, 7:36 PM
atul closed D12598: [lib] Deprecate `decodeMinimallyEncodedRawThreadInfo`.
Jul 9 2024, 7:29 PM
atul committed rCOMM7cb4f18418a2: [lib] Deprecate `decodeMinimallyEncodedRawThreadInfo`.
Jul 9 2024, 7: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, 7:28 PM
atul updated the diff for D12598: [lib] Deprecate `decodeMinimallyEncodedRawThreadInfo`.

resequence

Jul 9 2024, 7: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, 7:15 PM
atul updated the diff for D12601: [lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo`.

resolve merge conflicts

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

resolve merge conflict

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

resolve merge conflicts

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

resolve merge conflict

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

resolve merge conflict

Jul 9 2024, 5:57 PM
atul closed D12554: [lib] Remove `threadFrozenDueToBlock`, `threadOrParentThreadHasAdminRole` and `memberHadAdminPowers`.
Jul 9 2024, 5:22 PM
atul committed rCOMMe5ebff3685d6: [lib] Remove `threadFrozenDueToBlock`, `threadOrParentThreadHasAdminRole` and….
Jul 9 2024, 5:22 PM
atul updated the diff for D12554: [lib] Remove `threadFrozenDueToBlock`, `threadOrParentThreadHasAdminRole` and `memberHadAdminPowers`.

rebase and land

Jul 9 2024, 5:11 PM
atul closed D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.
Jul 9 2024, 5:09 PM
atul committed rCOMM993b4db8dd3c: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of….
Jul 9 2024, 5:09 PM
atul updated the diff for D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

rebase and land

Jul 9 2024, 4:58 PM
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, 4:57 PM

Jul 8 2024

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, 11:01 PM
atul added a comment to D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

Just jotting down my understanding

Jul 8 2024, 10:42 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, 9:42 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, 9:38 PM
atul added inline comments to D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.
Jul 8 2024, 9:28 PM
atul updated the diff for D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

fail permission check if we fail to fetch community root

Jul 8 2024, 9:27 PM
atul updated the diff for D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

partially address feedback (add comment explaining nullish coalescing w threadID)

Jul 8 2024, 8:53 PM
atul added inline comments to D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.
Jul 8 2024, 8:16 AM
atul updated the diff for D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

update communityMembersToRole within for loop to fallback to threadID if threadInfo.community is null (which means it's a community root itself).

Jul 8 2024, 7:59 AM
atul attached a referenced file: F2211025: b2d9be.png.
Jul 8 2024, 7:56 AM
atul updated the diff for D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

construct communityRootMembersToRole with both threadInfos and communityThreadInfos to handle scenario described here: https://phab.comm.dev/D12543?id=41737#inline-73658 where community root is one of the threadIDs passed into checkThreadsFrozen.

Jul 8 2024, 7:50 AM
atul attached a referenced file: F2210568: b6d60f.png.
Jul 8 2024, 7:02 AM
atul planned changes to D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.
Jul 8 2024, 7:01 AM
atul updated the diff for D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

address simple communityRootThread -> communityRootThreadID rename feedback

Jul 8 2024, 5:26 AM
atul abandoned D10622: [Buildkite] Bump `node` for ESLint/Flow/Jest and JSI CodeGen workflows.

This was done by @ashoat in D11493.

Jul 8 2024, 4:58 AM
atul abandoned D11252: [lib] Make `specialRoles` field of `RoleInfo` required.

We ended up going with a very different approach from this stack. Abandoning to tidy things up.

Jul 8 2024, 4:56 AM
atul abandoned D11311: [lib] Separate `serverThreadFrozenDueToBlock` and `clientThreadFrozenDueToBlock`.

We ended up going with a very different approach from this stack. Abandoning to tidy things up.

Jul 8 2024, 4:55 AM
atul abandoned D11317: [lib] Update `clientThreadFrozenDueToBlock` and `getMinimallyEncodedCurrentUser` signatures to include `communityThreadInfo`.

We ended up going with a very different approach from this stack. Abandoning to tidy things up.

Jul 8 2024, 4:55 AM
atul abandoned D11318: [lib] Introduce `threadInfoFromRawThreadInfo` wrapper that computes `currentUser` and passes to `baseThreadInfoFromRawThreadInfo`.

We ended up going with a very different approach from this stack. Abandoning to tidy things up.

Jul 8 2024, 4:55 AM
atul abandoned D11333: [lib] Split implementations of `[client/server]ThreadInfoFromRawThreadInfo`.

We ended up going with a very different approach from this stack. Abandoning to tidy things up.

Jul 8 2024, 4:54 AM

Jun 27 2024

atul published D12601: [lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo` for review.
Jun 27 2024, 9:16 PM
atul published D12599: [lib] Deprecate `updateRolesAndPermissions` for review.
Jun 27 2024, 9:14 PM
atul updated the diff for D12597: [lib] Fix construction of `ThinRawThreadInfo` in `createPendingThread`.

remove extraneous import

Jun 27 2024, 8:48 PM
atul published D12598: [lib] Deprecate `decodeMinimallyEncodedRawThreadInfo` for review.
Jun 27 2024, 8:45 PM
atul removed reviewers for D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`: ginsu, tomek.
Jun 27 2024, 8:45 PM
atul removed reviewers for D12554: [lib] Remove `threadFrozenDueToBlock`, `threadOrParentThreadHasAdminRole` and `memberHadAdminPowers`: ginsu, tomek, varun.
Jun 27 2024, 8:44 PM
atul requested review of D12597: [lib] Fix construction of `ThinRawThreadInfo` in `createPendingThread`.
Jun 27 2024, 8:42 PM
atul abandoned D12574: [native] Add `$FlowIgnore` annotation to migration 61.
Jun 27 2024, 7:47 PM
atul requested review of D12594: [lib] Change type of `ThinRawThreadInfo.members` from `MemberInfoWithPermissions` to `MemberInfoSansPermissions`.
Jun 27 2024, 7:45 PM
atul abandoned D12580: [lib] Deprecate `updateRolesAndPermissions` migration utility.

Abandoning in favor of stack starting with D12594 because lots of things have changed and there's not really 1:1 correspondence with old stack and new stack so I don't think it makes sense to update in place, change a bunch of child/parent diff relationships, etc.

Jun 27 2024, 7:39 PM
atul added a comment to D12574: [native] Add `$FlowIgnore` annotation to migration 61.
IMPORTANT: As mentioned in https://phab.comm.dev/D12557#356476, we will want to read through this carefully to ensure that migration continues to work as expected even if there are no flow issues in stack beginning D12594.
Jun 27 2024, 7:38 PM
atul abandoned D12573: [lib] Change `decodeMinimallyEncodedRawThreadInfo` argument type to `RawThreadInfoWithMemberPermissions`.

Abandoning in favor of stack starting with D12594 because lots of things have changed and there's not really 1:1 correspondence with old stack and new stack so I don't think it makes sense to update in place, change a bunch of child/parent diff relationships, etc.

Jun 27 2024, 7:37 PM
atul abandoned D12557: [lib] Change return type of `minimallyEncodeRawThreadInfo` to `RawThreadInfoWithMemberPermissions`.
IMPORTANT: Even if there aren't any flow issues here, will need to be extra careful with changes to minimallyEncodeRawThreadInfo/minimallyDecodeRawThreadInfo to make sure things work correctly with previous persisted representation of data to avoid breaking things. That was the issue with the "dropping isDefault" migration.
Jun 27 2024, 7:37 PM
atul abandoned D12502: [lib] Resolve `flow` issues in `getRelativeMemberInfos`.

Abandoning in favor of stack starting with D12594 because lots of things have changed and there's not really 1:1 correspondence with old stack and new stack so I don't think it makes sense to update in place, change a bunch of child/parent diff relationships, etc.

Jun 27 2024, 7:34 PM
atul abandoned D12472: [lib] Fix construction of `RawThreadInfo` in `createPendingThread`.

Abandoning in favor of stack starting with D12594 because lots of things have changed and there's not really 1:1 correspondence with old stack and new stack so I don't think it makes sense to update in place, change a bunch of child/parent diff relationships, etc.

Jun 27 2024, 7:33 PM
atul abandoned D12470: [lib] Remove `member.permissions` from `RawThreadInfo` test data.

Abandoning in favor of stack starting with D12594 because lots of things have changed and there's not really 1:1 correspondence with old stack and new stack so I don't think it makes sense to update in place, change a bunch of child/parent diff relationships, etc.

Jun 27 2024, 7:33 PM
atul abandoned D12469: [lib] Change type of `RawThreadInfo.members` from `MemberInfoWithPermissions` to `MemberInfoSansPermissions`.

Abandoning in favor of stack starting with D12594 because lots of things have changed and there's not really 1:1 correspondence with old stack and new stack so I don't think it makes sense to update in place, change a bunch of child/parent diff relationships, etc.

Jun 27 2024, 7:32 PM
atul abandoned D12556: [lib] Remove `threadOrParentThreadHasAdminRole` and `memberHadAdminPowers`.

Abandoning because changes are now included in D12554

Jun 27 2024, 7:04 PM