Page MenuHomePhabricator
Feed Advanced Search

Jul 17 2024

atul committed rCOMMdc0975f965cb: [lib] Move `stripPermissionsFromMemberInfo` out of `...-types.js` file (authored by atul).
[lib] Move `stripPermissionsFromMemberInfo` out of `...-types.js` file
Jul 17 2024, 2: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, 1: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, 1:53 PM
atul closed D12787: [lib] Add `memberInfoSansPermissionsValidator` to `convertClientDBThreadInfoToRawThreadInfo`.
Jul 17 2024, 1:52 PM
atul committed rCOMM1a4d31715739: [lib] Add `memberInfoSansPermissionsValidator` to… (authored by atul).
[lib] Add `memberInfoSansPermissionsValidator` to…
Jul 17 2024, 1:52 PM
atul updated the diff for D12787: [lib] Add `memberInfoSansPermissionsValidator` to `convertClientDBThreadInfoToRawThreadInfo`.

cherry-pick and land

Jul 17 2024, 1: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, 1:47 PM
atul closed D12758: [lib] Introduce `memberInfoSansPermissionsValidator` and consume in `rawThreadInfoValidator`.
Jul 17 2024, 1:37 PM
atul committed rCOMM5029a29dfb30: [lib] Introduce `memberInfoSansPermissionsValidator` and consume in… (authored by atul).
[lib] Introduce `memberInfoSansPermissionsValidator` and consume in…
Jul 17 2024, 1: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, 1:03 PM
atul requested review of D12787: [lib] Add `memberInfoSansPermissionsValidator` to `convertClientDBThreadInfoToRawThreadInfo`.
Jul 17 2024, 12:53 PM
atul updated the diff for D12758: [lib] Introduce `memberInfoSansPermissionsValidator` and consume in `rawThreadInfoValidator`.

cherry-pick off master

Jul 17 2024, 12: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, 12: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, 12:41 PM
atul added inline comments to D12763: [lib] Introduce `stripMemberPermissionsFromRawThreadInfo`.
Jul 17 2024, 12: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, 12:30 PM

Jul 16 2024

atul published D12779: [keyserver] Strip `member.permissions` for `FUTURE_CODE_VERSION` clients for review.
Jul 16 2024, 2:49 PM

Jul 15 2024

atul requested review of D12763: [lib] Introduce `stripMemberPermissionsFromRawThreadInfo`.
Jul 15 2024, 6:52 PM
atul published D12758: [lib] Introduce `memberInfoSansPermissionsValidator` and consume in `rawThreadInfoValidator` for review.
Jul 15 2024, 1:04 PM
atul requested review of D12756: [lib] Move `stripPermissionsFromMemberInfo` out of `...-types.js` file.
Jul 15 2024, 12: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, 11:50 AM
atul added a comment to D12733: [lib] Deprecate `minimallyEncodeRawThreadInfo`.

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

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

address ESLint issues

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

Jul 11 2024

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

Jul 10 2024

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

Jul 9 2024

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

rebase after resequence

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

rebase after resequence

Jul 9 2024, 2:02 PM
atul closed D12601: [lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo`.
Jul 9 2024, 1:54 PM
atul committed rCOMMeae3437bda18: [lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo` (authored by atul).
[lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo`
Jul 9 2024, 1:54 PM
atul updated the diff for D12601: [lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo`.

resequence

Jul 9 2024, 1: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, 1:29 PM
atul closed D12599: [lib] Deprecate `updateRolesAndPermissions`.
Jul 9 2024, 1:27 PM
atul committed rCOMMfc1e4abe9c83: [lib] Deprecate `updateRolesAndPermissions` (authored by atul).
[lib] Deprecate `updateRolesAndPermissions`
Jul 9 2024, 1: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, 1:27 PM
atul updated the diff for D12599: [lib] Deprecate `updateRolesAndPermissions`.

re-open to address eslint thing

Jul 9 2024, 1:17 PM
atul reopened D12599: [lib] Deprecate `updateRolesAndPermissions`.
Jul 9 2024, 1:17 PM
atul added a reverting change for D12599: [lib] Deprecate `updateRolesAndPermissions`: rCOMM1377f88ecd03: Revert "[lib] Deprecate `updateRolesAndPermissions`".
Jul 9 2024, 1:15 PM
atul added a reverting change for rCOMMad00e8286547: [lib] Deprecate `updateRolesAndPermissions`: rCOMM1377f88ecd03: Revert "[lib] Deprecate `updateRolesAndPermissions`".
Jul 9 2024, 1:15 PM
atul committed rCOMM1377f88ecd03: Revert "[lib] Deprecate `updateRolesAndPermissions`" (authored by atul).
Revert "[lib] Deprecate `updateRolesAndPermissions`"
Jul 9 2024, 1:15 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
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
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
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
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

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, 4:01 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
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
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
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, 2: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, 1:53 PM
atul added inline comments to D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.
Jul 8 2024, 1: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, 12:59 AM
atul attached a referenced file: F2211025: b2d9be.png.
Jul 8 2024, 12: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, 12:50 AM
atul attached a referenced file: F2210568: b6d60f.png.
Jul 8 2024, 12:02 AM
atul planned changes to D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.
Jul 8 2024, 12:01 AM

Jul 7 2024

atul updated the diff for D12543: [keyserver] Use `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck` instead of `threadFrozenDueToBlock` in `checkThreadsFrozen`.

address simple communityRootThread -> communityRootThreadID rename feedback

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

This was done by @ashoat in D11493.

Jul 7 2024, 9:58 PM
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 7 2024, 9:56 PM
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 7 2024, 9:55 PM
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 7 2024, 9:55 PM
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 7 2024, 9:55 PM
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 7 2024, 9:54 PM

Jun 27 2024

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

remove extraneous import

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

Abandoning because changes are now included in D12554

Jun 27 2024, 12:04 PM
atul retitled D12554: [lib] Remove `threadFrozenDueToBlock`, `threadOrParentThreadHasAdminRole` and `memberHadAdminPowers` from [lib] Remove `threadFrozenDueToBlock` to [lib] Remove `threadFrozenDueToBlock`, `threadOrParentThreadHasAdminRole` and `memberHadAdminPowers`.
Jun 27 2024, 12:03 PM