Page MenuHomePhorge
Feed Search

Dec 13 2023

atul updated the diff for D10223: [lib] Update `threads-state-sync-spec` to use more general `RawThreadInfo[s]`.

land what's easy to land to reduce stack

Dec 13 2023, 3:28 AM
atul closed D10209: [lib] Remove simple usages of `LegacyRawThreadInfo`.
Dec 13 2023, 3:21 AM
atul committed rCOMM067235503820: [lib] Remove simple usages of `LegacyRawThreadInfo`.
Dec 13 2023, 3:21 AM
atul updated the diff for D10209: [lib] Remove simple usages of `LegacyRawThreadInfo`.

land what's easy to land to reduce stack

Dec 13 2023, 3:15 AM
atul closed D10325: [lib] Add runtime check to `minimallyEncodeThreadCurrentUserInfo` ensure argument isn't already minimally encoded.
Dec 13 2023, 3:11 AM
atul committed rCOMM9a177e67d0c0: [lib] Add runtime check to `minimallyEncodeThreadCurrentUserInfo` ensure….
Dec 13 2023, 3:11 AM
atul updated the diff for D10325: [lib] Add runtime check to `minimallyEncodeThreadCurrentUserInfo` ensure argument isn't already minimally encoded.

land what's easily landable to reduce size of stack

Dec 13 2023, 3:09 AM

Dec 12 2023

atul published D10325: [lib] Add runtime check to `minimallyEncodeThreadCurrentUserInfo` ensure argument isn't already minimally encoded for review.
Dec 12 2023, 11:08 PM
atul updated the diff for D10314: [lib] Update `convertClientDBThreadInfoToRawThreadInfo` to validate `ThreadCurrentUserInfo`.

fix (possible) minimal encoding of rawCurrentUser if not already minimally encoded.... just spent last 1.5 hours trying to figure out what was wrong, definitely going to add some invariants that would've broke "loudly" instead of erroneously encoding silently

Dec 12 2023, 9:59 PM
atul published D10314: [lib] Update `convertClientDBThreadInfoToRawThreadInfo` to validate `ThreadCurrentUserInfo` for review.
Dec 12 2023, 8:32 PM
atul attached a referenced file: F930661: ea0cad.png.
Dec 12 2023, 8:14 PM
atul added inline comments to D10313: [lib] Update `convertClientDBThreadInfoToRawThreadInfo` to validate `RoleInfo`s.
Dec 12 2023, 8:14 PM
atul published D10313: [lib] Update `convertClientDBThreadInfoToRawThreadInfo` to validate `RoleInfo`s for review.
Dec 12 2023, 8:13 PM
atul requested changes to D10310: [native] Fix failing base64 decode for thumbhash.

Apologize for additional churn, but looks like changing that flag from Base64.DEFAULT to Base64.NO_WRAP does the trick.

Dec 12 2023, 7:36 PM
atul accepted D10266: [web] introduce secondary button prop to modal component.

Thanks for taking time to address feedback, looks a lot cleaner!

Dec 12 2023, 7:19 PM
atul added a comment to D10310: [native] Fix failing base64 decode for thumbhash.

Didn't do any original research or fact checking, so take it with a grain of salt, but it looks like inclusion of \n character might have to do with some original Base64 MIME spec:

b73de3.png (2×1 px, 504 KB)

Dec 12 2023, 7:08 PM
atul accepted D10310: [native] Fix failing base64 decode for thumbhash.

It seems weird to me that the base64 ever ends with newline. Don't have much context into how everything works on native side, but are we always getting it back directly from the android.util.Base64 function? Are we maybe writing it to a file and reading it back at any point?

Dec 12 2023, 6:58 PM
atul published D10298: [lib] Update `convertClientDBThreadInfoToRawThreadInfo` to validate `MemberInfo`s for review.
Dec 12 2023, 1:17 AM
atul published D10297: [native] Redux migration to support minimally encoded permissions for review.
Dec 12 2023, 12:11 AM

Dec 11 2023

atul published D10296: [lib] Fix `threadPermissionsFromBitmaskHex` invariant for review.
Dec 11 2023, 10:25 PM
atul published D10295: [keyserver] Move `threadStoreValidator` to `redux-state-responders` for review.
Dec 11 2023, 8:42 PM
atul updated subscribers of D10294: [lib][keyserver] Replace `legacyRawThreadInfoValidator` with `rawThreadInfoValidator`.

How come legacyRawThreadInfoValidator isn't removed here? Is it still needed somewhere?

Dec 11 2023, 8:40 PM
atul published D10294: [lib][keyserver] Replace `legacyRawThreadInfoValidator` with `rawThreadInfoValidator` for review.
Dec 11 2023, 8:10 PM
atul updated the diff for D10286: [keyserver] Update `rawThreadInfoFromServerThreadInfo` to support `minimallyEncodePermissions` option.

fix

Dec 11 2023, 7:42 PM
atul abandoned D10291: [IGNORE] Starting point for parameterizing getRelativeMemberInfos.
Dec 11 2023, 6:49 PM
atul added a comment to D10210: [lib] Introduce `deprecatedConvertClientDBThreadInfoToRawThreadInfo`.

thought happy to create Linear tasks if that'd be prefered.

Yes please!

Dec 11 2023, 6:47 PM
atul updated the summary of D10210: [lib] Introduce `deprecatedConvertClientDBThreadInfoToRawThreadInfo`.
Dec 11 2023, 6:23 PM
atul closed D10198: [lib] Update `convertRawThreadInfoToClientDBThreadInfo` to handle `RawThreadInfo`.
Dec 11 2023, 6:22 PM
atul committed rCOMM00f1163d1b44: [lib] Update `convertRawThreadInfoToClientDBThreadInfo` to handle….
Dec 11 2023, 6:22 PM
atul added a comment to D10198: [lib] Update `convertRawThreadInfoToClientDBThreadInfo` to handle `RawThreadInfo`.

Yeah, we'll need to think through migrations carefully. We'll also need to migrate all of the data in SQLite from the old format to the new, right?

Dec 11 2023, 5:58 PM
atul updated the diff for D10198: [lib] Update `convertRawThreadInfoToClientDBThreadInfo` to handle `RawThreadInfo`.

rebase and land noop refactors

Dec 11 2023, 5:52 PM
atul added a comment to D10195: [lib] Update `threadInfoFromRawThreadInfo` to return `MinimallyEncodedThreadInfo`.

Marking this as [DO NOT LAND] because this would break existing clients at this point.

Dec 11 2023, 5:50 PM
atul retitled D10195: [lib] Update `threadInfoFromRawThreadInfo` to return `MinimallyEncodedThreadInfo` from [lib] Update `threadInfoFromRawThreadInfo` to return `MinimallyEncodedThreadInfo` to [DO NOT LAND][lib] Update `threadInfoFromRawThreadInfo` to return `MinimallyEncodedThreadInfo`.
Dec 11 2023, 5:50 PM
atul published D10291: [IGNORE] Starting point for parameterizing getRelativeMemberInfos for review.
Dec 11 2023, 5:48 PM
atul added a comment to D10235: [lib] Update `getRelativeMemberInfos` to handle both `MinimallyEncoded` and `Legacy` variants.

Realizing my explanation above is probably difficult to follow.

Dec 11 2023, 5:47 PM
atul added a comment to D10235: [lib] Update `getRelativeMemberInfos` to handle both `MinimallyEncoded` and `Legacy` variants.

I'd like to try my hand at parameterizing getRelativeMemberInfos. What's the best way to do it? Won't I need at least one usage of the minimally-encoded variant to be able to test that the types work out? Should I check out a later diff?

Dec 11 2023, 5:39 PM
atul updated the test plan for D10210: [lib] Introduce `deprecatedConvertClientDBThreadInfoToRawThreadInfo`.
Dec 11 2023, 5:31 PM
atul updated the test plan for D10286: [keyserver] Update `rawThreadInfoFromServerThreadInfo` to support `minimallyEncodePermissions` option.
Dec 11 2023, 3:55 AM
atul updated the diff for D10211: [lib] Introduce `rawThreadInfoValidator` and consume in `threads-state-sync-spec`.

newline after @flow AND fix TUnion import

Dec 11 2023, 3:33 AM
atul published D10286: [keyserver] Update `rawThreadInfoFromServerThreadInfo` to support `minimallyEncodePermissions` option for review.
Dec 11 2023, 3:22 AM
atul published D10285: [lib] Naively update `threadInfoFromRawThreadInfo` to support `RawThreadInfo` argument for review.
Dec 11 2023, 3:02 AM
atul accepted D10282: [web] cleanup thread notifications modal rendering logic.
Dec 11 2023, 1:25 AM
atul accepted D10279: [web] cleanup confirm leave thread modal.
Dec 11 2023, 1:24 AM
atul accepted D10276: [web] cleanup sidebar promote modal.
Dec 11 2023, 1:22 AM
atul attached a referenced file: F923616: 448c65.png.
Dec 11 2023, 12:40 AM
atul requested changes to D10266: [web] introduce secondary button prop to modal component.

Can we update the Props type to handle the "secondary button without primary button" scenario you described using the approach I mentioned in previous comment? That'll also allow us to make buttonContainer more concise and readable.

Dec 11 2023, 12:40 AM
atul added a comment to D10266: [web] introduce secondary button prop to modal component.

There should be no case where we render just a secondary button in the button section for modals so I made this change with the intention that if a dev passed in a secondary button w/o a primary button on accident then we would just render the default emptyButtonContainerOffset.

Dec 11 2023, 12:29 AM
atul added inline comments to D10284: [native] Update `updateRolesAndPermissions` to only handle `LegacyRawThreadInfos`.
Dec 11 2023, 12:24 AM
atul published D10284: [native] Update `updateRolesAndPermissions` to only handle `LegacyRawThreadInfos` for review.
Dec 11 2023, 12:22 AM

Dec 10 2023

atul requested review of D10283: [lib] Update `convertThreadStoreThreadInfosToNewIDSchema` migration to ensure `rawThreadInfos` are NOT minimally encoded.
Dec 10 2023, 11:01 PM

Dec 8 2023

atul added a comment to D10281: [native] Introduce `assertAllThreadInfosAreLegacy` to address migration 29 `flow` issues.

Current status:

Dec 8 2023, 9:57 PM
atul added inline comments to D10281: [native] Introduce `assertAllThreadInfosAreLegacy` to address migration 29 `flow` issues.
Dec 8 2023, 9:54 PM
atul requested review of D10281: [native] Introduce `assertAllThreadInfosAreLegacy` to address migration 29 `flow` issues.
Dec 8 2023, 9:54 PM
atul requested review of D10280: [native] Add branching to `fixUnreadActiveThread` to support `RawThreadInfos`.
Dec 8 2023, 9:32 PM
atul requested review of D10278: [native] Update `client-db-utils` to accomodate `RawThreadInfos`.
Dec 8 2023, 9:23 PM
atul requested review of D10277: [web] Update `validateStateAndProcessDBOperations` to handle `RawThreadInfos`.
Dec 8 2023, 9:11 PM
atul retitled D10275: [lib] Update remaining places in `lib` to support `RawThreadInfos` from [lib] Update remaining places in `lib` to support `LegacyRawThreadInfos`
Dec 8 2023, 9:08 PM
atul requested review of D10275: [lib] Update remaining places in `lib` to support `RawThreadInfos`.
Dec 8 2023, 8:56 PM
atul requested review of D10274: [lib] Add branching to `reduceThreadInfos` to accomodate `RawThreadInfos`.
Dec 8 2023, 8:43 PM
atul published D10272: [lib] Introduce `getRelativeMemberInfos` which helps narrow `[Legacy]RawThreadInfos` for review.
Dec 8 2023, 8:26 PM
atul updated the diff for D10271: [lib] Add ridiculous branching to `update-thread-read-status-spec` to appease `flow`.

temp fix

Dec 8 2023, 8:20 PM
atul updated the diff for D10271: [lib] Add ridiculous branching to `update-thread-read-status-spec` to appease `flow`.

fix

Dec 8 2023, 8:15 PM
atul requested review of D10271: [lib] Add ridiculous branching to `update-thread-read-status-spec` to appease `flow`.
Dec 8 2023, 8:12 PM
atul requested review of D10270: [lib] Add ridiculous branching to `delete-account-spec` to appease `flow`.
Dec 8 2023, 7:58 PM
atul published D10268: [lib] Replace `LegacyRawThreadInfos` with `RawThreadInfos` where simple in `shared/updates` for review.
Dec 8 2023, 7:49 PM
atul requested review of D10243: [lib] Update `lib/types` to accomodate `RawThreadInfos`.
Dec 8 2023, 5:47 PM

Dec 7 2023

atul published D10235: [lib] Update `getRelativeMemberInfos` to handle both `MinimallyEncoded` and `Legacy` variants for review.
Dec 7 2023, 9:03 PM
atul requested review of D10233: [lib] Simplify `getRelativeMemberInfos`.
Dec 7 2023, 8:25 PM
atul requested review of D10227: [native] Rip `LegacyRawThreadInfos` out of `native`.
Dec 7 2023, 6:16 PM
atul published D10226: [web] Rip `LegacyRawThreadInfos` out of `web` for review.
Dec 7 2023, 5:45 PM
atul published D10225: [lib] Rip `LegacyRawThreadInfos` out of `lib/selector` for review.
Dec 7 2023, 5:44 PM
atul published D10224: [lib] Replace `LegacyRawThreadInfoS` with `RawThreadInfoS` where simple for review.
Dec 7 2023, 5:11 PM
atul published D10223: [lib] Update `threads-state-sync-spec` to use more general `RawThreadInfo[s]` for review.
Dec 7 2023, 4:18 PM

Dec 6 2023

atul requested review of D10212: [lib] Update `Role[Deletion/Modification][Payload/Result]` to handle `RawThreadInfo`.
Dec 6 2023, 11:27 PM
atul published D10211: [lib] Introduce `rawThreadInfoValidator` and consume in `threads-state-sync-spec` for review.
Dec 6 2023, 10:43 PM
atul published D10210: [lib] Introduce `deprecatedConvertClientDBThreadInfoToRawThreadInfo` for review.
Dec 6 2023, 10:42 PM
atul published D10209: [lib] Remove simple usages of `LegacyRawThreadInfo` for review.
Dec 6 2023, 9:00 PM
atul accepted D10207: Enable Flow lints that don't produce any additional errors.
Dec 6 2023, 5:04 PM

Dec 5 2023

atul closed D10197: [lib] Update `isThreadWatched` to handle `RawThreadInfo`.
Dec 5 2023, 11:03 PM
atul committed rCOMMd86cdf6d77cf: [lib] Update `isThreadWatched` to handle `RawThreadInfo`.
Dec 5 2023, 11:03 PM
atul updated the diff for D10197: [lib] Update `isThreadWatched` to handle `RawThreadInfo`.

rebase and land

Dec 5 2023, 9:13 PM
atul published D10198: [lib] Update `convertRawThreadInfoToClientDBThreadInfo` to handle `RawThreadInfo` for review.
Dec 5 2023, 8:55 PM
atul requested review of D10197: [lib] Update `isThreadWatched` to handle `RawThreadInfo`.
Dec 5 2023, 6:59 PM
atul accepted D10177: [keyserver] Ignore potential to crash on promise rejections in scripts.
Dec 5 2023, 6:23 PM
atul requested review of D10195: [lib] Update `threadInfoFromRawThreadInfo` to return `MinimallyEncodedThreadInfo`.
Dec 5 2023, 4:22 PM
atul accepted D10168: [native][web] Cast InputState / BaseInputState when returning from selectors.
Dec 5 2023, 3:41 PM

Dec 4 2023

atul accepted D10156: [lib] Move mergeUserInfos.

Guessing you meant something like flow instead of yarn for test plan?

Dec 4 2023, 5:37 PM
atul accepted D10144: [web] introduce light mode to community creation modal.

Code changes seem fine, but agree there is some weirdness visually

Dec 4 2023, 5:35 PM

Dec 1 2023

atul accepted D10115: [native] Update update-roles-and-permissions-test-data.js to include specialRole field.
Dec 1 2023, 9:57 PM
atul accepted D10112: [lib] Update minimally-encoded-thread-permissions-test-data.js to include specialRole field.
Dec 1 2023, 9:57 PM
atul accepted D10111: [lib] Update minimally-encoded-thread-permissions.test.js to include specialRole field.
Dec 1 2023, 9:55 PM
atul accepted D10110: [keyserver] Update responder-validators.test.js to include specialRole field.
Dec 1 2023, 9:55 PM
atul accepted D10114: [lib] Update thread-ops-utils.test.js to include specialRole field.
Dec 1 2023, 9:54 PM
atul accepted D10113: [lib] Update validation.test.js to include specialRole field.
Dec 1 2023, 9:51 PM
atul requested changes to D10113: [lib] Update validation.test.js to include specialRole field.
Dec 1 2023, 9:48 PM
atul accepted D10113: [lib] Update validation.test.js to include specialRole field.
Dec 1 2023, 9:48 PM
atul closed D10142: Rip `LegacyThreadInfo` out of selectors and related code.
Dec 1 2023, 8:44 PM
atul committed rCOMMaca9f25487d3: Rip `LegacyThreadInfo` out of selectors and related code.
Dec 1 2023, 8:44 PM
atul closed D10140: [native] Rip `LegacyThreadInfo` out of `native/chat`.
Dec 1 2023, 8:44 PM
atul closed D10139: [native][web] Remove `LegacyThreadInfo` where possible after updating `useRoleUserSurfacedPermissions`.
Dec 1 2023, 8:44 PM