Page MenuHomePhorge
Feed All Stories

Sep 21 2023

tomek requested review of D9257: [lib] Move entries updates logic into a spec.
Sep 21 2023, 3:40 PM
rohan accepted D9251: [keyserver] Remove unused exports in message-fetchers.js.
Sep 21 2023, 3:40 PM
rohan added inline comments to D9220: [keyserver] Encode the device id into the QR code.
Sep 21 2023, 3:31 PM
rohan updated the diff for D9220: [keyserver] Encode the device id into the QR code.

Consolidate retrieving device id logic into a helper function & use that in:

Sep 21 2023, 3:29 PM
michal requested review of D9256: [web/native] Add threadHashes to threadStore.
Sep 21 2023, 3:14 PM
ashoat added a comment to D9255: [native] Use threadInfo in setClientDBStoreActionType.

Thanks @michal, that all makes sense.

Sep 21 2023, 3:03 PM
michal added a comment to D9255: [native] Use threadInfo in setClientDBStoreActionType.

Selector performance:
From looking at the code, we always select by state.threadStore.threadInfos, so there should be no issue. I've put up the next diff (D9256) which contains the actual changes to the threadStore: the newly added threadHashes are always updated at the same time as threadInfos inside of the threadStoreOpsHandlers.

Sep 21 2023, 3:00 PM
patryk published D9057: [web] Add webMentionTypeaheadRegex tests for review.
Sep 21 2023, 2:53 PM
ashoat added a reviewer for D9255: [native] Use threadInfo in setClientDBStoreActionType: atul.

I’d like to make sure @atul takes a look from the performance angle. Including this in ThreadStore is risky... any changes to the hashes will force every selector that depends on ThreadStore to re-run. If everything is memoized correctly, the performance cost should be limited. But if not there's a risk of hurting client performance by forcing unnecessary renders, especially if the actions "trickle in" separate from other changes to ThreadStore. (I assume "trickling in" would at least be necessary for a fresh log-in, where calculating all the hashes right away would be prohibitively expensive.)

Sep 21 2023, 1:42 PM
rohan updated the diff for D9202: [keyserver/web/native] Covert AES-256 key from Uint8Array representation to hex string representation.

Use rawAESKey and aesKeyAsHexString

Sep 21 2023, 1:30 PM
patryk added a comment to D8908: [lib] Encode chat name in raw chat mention.

D9254

Sep 21 2023, 1:24 PM
michal accepted D9242: [services-lib] Use constant-time-eq for token verification.

Ok, seems like constant_time_eq checks the lengths inside, from looking at the code

Sep 21 2023, 1:22 PM
michal requested review of D9255: [native] Use threadInfo in setClientDBStoreActionType.
Sep 21 2023, 11:44 AM
patryk published D9254: [lib] Add unit tests for mention utils for review.
Sep 21 2023, 11:34 AM
patryk updated the diff for D9005: [lib] Introduce chat mention utilities for plain text.

Decode alternative text

Sep 21 2023, 11:13 AM
michal requested review of D9253: [lib/keyserver] Improve state sync types.
Sep 21 2023, 11:08 AM
patryk retitled D9218: [keyserver] Render raw chat mention in the notification text from [keyserver] Render raw chat mention
Sep 21 2023, 9:06 AM
patryk added a comment to D9152: [native] Use expo-file-system uploads.

I've tested this diff on Android and it's working properly.

Sep 21 2023, 9:05 AM
varun accepted D9242: [services-lib] Use constant-time-eq for token verification.
Sep 21 2023, 6:22 AM
varun added a comment to D9242: [services-lib] Use constant-time-eq for token verification.

after they find a match

Sep 21 2023, 6:22 AM
varun requested changes to D9220: [keyserver] Encode the device id into the QR code.
Sep 21 2023, 5:56 AM
varun accepted D9202: [keyserver/web/native] Covert AES-256 key from Uint8Array representation to hex string representation.

accepting with nit inline

Sep 21 2023, 5:01 AM
varun accepted D9181: [keyserver] Generate an AES256 key (ephemeral) to encode.

Can we use any random string as an AES-256 key? Or are there some additional requirements?

Sep 21 2023, 4:48 AM

Sep 20 2023

atul committed rCOMM1cf8c3d6ba22: Revert "[native] Temporary changes for staff release".
Sep 20 2023, 9:35 PM
atul committed rCOMM9d0a6d545307: [native] `codeVersion` -> 264.
Sep 20 2023, 9:35 PM
atul committed rCOMMe8bd73f1d8e1: [native] Temporary changes for staff release.
Sep 20 2023, 9:35 PM
atul committed rCOMM87443cc76daf: [native] `codeVersion` -> 263.
Sep 20 2023, 9:35 PM
ashoat closed D9250: [keyserver] Increase timeout for getInitialReduxState.
Sep 20 2023, 9:32 PM
ashoat committed rCOMM9595f5ed54d1: [keyserver] Increase timeout for getInitialReduxState.
Sep 20 2023, 9:32 PM
ashoat requested changes to D9223: [nix] add logs to console while waiting for MariaDB to come up.

What is the point of the outer if here...?

Sep 20 2023, 9:30 PM
ashoat requested changes to D9235: [lib] introduce createPendingPersonalThread function.
Sep 20 2023, 9:28 PM
ginsu updated the diff for D9120: [native] update UserProfileBottomSheet to get a userInfo from a userID.

rebase before landing

Sep 20 2023, 9:09 PM
ginsu updated the diff for D9203: [web] introduce AppearanceChangeModal.

rebase before landing

Sep 20 2023, 9:07 PM
ginsu updated the diff for D9223: [nix] add logs to console while waiting for MariaDB to come up.

address @atul's comments

Sep 20 2023, 9:05 PM
ginsu requested review of D9252: [lib/native] introduce UserProfileMessageButton.
Sep 20 2023, 9:02 PM
atul added reviewers for D9235: [lib] introduce createPendingPersonalThread function: ashoat, tomek.

Adding @ashoat and @tomek here since I don't have a ton of context on pending threads

Sep 20 2023, 8:54 PM
atul added a comment to D9251: [keyserver] Remove unused exports in message-fetchers.js.

Android failure is unrelated

Sep 20 2023, 8:54 PM
atul accepted D9223: [nix] add logs to console while waiting for MariaDB to come up.

Looks good, left comments but they're purely personal preference so feel free to land as is

Sep 20 2023, 8:52 PM
atul accepted D9120: [native] update UserProfileBottomSheet to get a userInfo from a userID.
Sep 20 2023, 8:51 PM
atul accepted D9203: [web] introduce AppearanceChangeModal.
Sep 20 2023, 8:50 PM
ashoat requested review of D9251: [keyserver] Remove unused exports in message-fetchers.js.

Android failure is unrelated

Sep 20 2023, 8:31 PM
ashoat accepted D9204: [lib] introduce threadInfosSelectorForThreadType selector.

Thanks for explaining!

Sep 20 2023, 8:30 PM
ginsu accepted D9250: [keyserver] Increase timeout for getInitialReduxState.
Sep 20 2023, 8:20 PM
ashoat requested review of D9250: [keyserver] Increase timeout for getInitialReduxState.
Sep 20 2023, 8:19 PM
ginsu requested review of D9204: [lib] introduce threadInfosSelectorForThreadType selector.
Sep 20 2023, 7:12 PM
ginsu added a comment to D9204: [lib] introduce threadInfosSelectorForThreadType selector.

D9235 factors out the logic in the search experience for creating a "pending" thread if that thread doesn't exist yet. This logic will be shared between the search experience and the user profiles experience.

Sep 20 2023, 7:12 PM
ashoat requested changes to D9249: [lib] Extend RobotextParams to include parentThreadInfo.
Sep 20 2023, 6:55 PM
ashoat added inline comments to D9249: [lib] Extend RobotextParams to include parentThreadInfo.
Sep 20 2023, 6:52 PM
ginsu requested review of D9247: [lib] introduce useUserProfileThreadInfo hook.
Sep 20 2023, 6:34 PM
ginsu attached a referenced file: F767708: Screenshot 2023-09-20 at 1.10.51 PM.png.
Sep 20 2023, 6:34 PM
ginsu attached a referenced file: F767831: Screen Recording 2023-09-20 at 2.32.13 PM.mov.
Sep 20 2023, 6:34 PM
ginsu updated the test plan for D9247: [lib] introduce useUserProfileThreadInfo hook.
Sep 20 2023, 6:34 PM
rohan requested review of D9249: [lib] Extend RobotextParams to include parentThreadInfo.
Sep 20 2023, 6:25 PM
atul added inline comments to D9248: [native] Fix rescinds and badge-only notifs on iOS.
Sep 20 2023, 5:45 PM
ashoat committed rCOMM67aea23e378a: [web][keyserver] codeVersion -> 29.
Sep 20 2023, 5:42 PM
ashoat closed D9248: [native] Fix rescinds and badge-only notifs on iOS.
Sep 20 2023, 5:40 PM
ashoat committed rCOMM4a1baebbbe0f: [native] Fix rescinds and badge-only notifs on iOS.
Sep 20 2023, 5:40 PM
atul added a comment to D9227: [patch] Patch `expo-modules-core` to unblock iOS build on macOS Sonoma.

Can you create a GitHub issue on the Expo repo and link it here before landing?

Sep 20 2023, 5:39 PM
ashoat added a comment to D9248: [native] Fix rescinds and badge-only notifs on iOS.

Nope, this doesn't relate to any keyserver change

Sep 20 2023, 5:38 PM
atul accepted D9248: [native] Fix rescinds and badge-only notifs on iOS.

Was there maybe some corresponding keyserver change that needed to be deployed before this release or something?

Sep 20 2023, 5:37 PM
ashoat accepted D9227: [patch] Patch `expo-modules-core` to unblock iOS build on macOS Sonoma.

Can you create a GitHub issue on the Expo repo and link it here before landing?

Sep 20 2023, 5:36 PM
atul published D9248: [native] Fix rescinds and badge-only notifs on iOS for review.
Sep 20 2023, 5:36 PM
atul closed D9233: [iOS] Add `withEnableSampleProfiling(true)` to `makeRuntimeConfig`.
Sep 20 2023, 5:31 PM
atul committed rCOMM125b29a6d73e: [iOS] Add `withEnableSampleProfiling(true)` to `makeRuntimeConfig`.
Sep 20 2023, 5:31 PM
ginsu added inline comments to D9247: [lib] introduce useUserProfileThreadInfo hook.
Sep 20 2023, 5:24 PM
atul updated the diff for D9233: [iOS] Add `withEnableSampleProfiling(true)` to `makeRuntimeConfig`.

toggle withEnableSampleProfiling on DEBUG

Sep 20 2023, 5:24 PM
atul added a comment to D9233: [iOS] Add `withEnableSampleProfiling(true)` to `makeRuntimeConfig`.

Okay, please make sure that upstream React Native does this on all builds too before landing!

Sep 20 2023, 5:21 PM
ginsu updated the summary of D9204: [lib] introduce threadInfosSelectorForThreadType selector.
Sep 20 2023, 5:07 PM
ginsu updated the summary of D9235: [lib] introduce createPendingPersonalThread function.
Sep 20 2023, 5:07 PM
ginsu planned changes to D9247: [lib] introduce useUserProfileThreadInfo hook.

still need to write some comments + update test plan (will rerequest review when finished with that)

Sep 20 2023, 4:48 PM
ginsu requested review of D9247: [lib] introduce useUserProfileThreadInfo hook.
Sep 20 2023, 4:47 PM
atul added a comment to D9227: [patch] Patch `expo-modules-core` to unblock iOS build on macOS Sonoma.

Is there a GitHub issue in Expo's GitHub repo for this?

Sep 20 2023, 4:47 PM
rohan closed D9238: [lib] Extract the unsupported sidebar source message types to one single source of truth.
Sep 20 2023, 4:21 PM
rohan closed D9239: [keyserver] Prevent non-composable message types from being pinned on the keyserver.
Sep 20 2023, 4:21 PM
rohan closed D9237: [lib] Update useCanCreateSidebarFromMessage to prevent sidebar creation for unsupported message types.
Sep 20 2023, 4:21 PM
rohan committed rCOMM9e8f0491295e: [lib] Extract the unsupported sidebar source message types to one single source….
Sep 20 2023, 4:21 PM
rohan committed rCOMMbca46dc9ac6c: [lib] Update useCanCreateSidebarFromMessage to prevent sidebar creation for….
Sep 20 2023, 4:21 PM
rohan committed rCOMM2954159c828e: [keyserver] Prevent non-composable message types from being pinned on the….
Sep 20 2023, 4:21 PM
ginsu updated the diff for D9235: [lib] introduce createPendingPersonalThread function.

remove export

Sep 20 2023, 4:20 PM
rohan added a comment to D9238: [lib] Extract the unsupported sidebar source message types to one single source of truth.

As discussed, landing as is and will address feedback / de-duping while working on the major changes

Sep 20 2023, 4:17 PM
inka requested review of D9246: [native][web] Fix keyserver store tranform error.
Sep 20 2023, 4:17 PM
ashoat added a comment to D9225: [lib] Create function for extracing keyserver id from object id.

This does not handle pending threads (more precisely sidebars created from a message)

Sep 20 2023, 1:17 PM
inka added inline comments to D9226: [lib] Update KeyserverCall type.
Sep 20 2023, 1:15 PM
inka updated the diff for D9240: [lib][web][native] Refactor actions in message-actions.js.

Remove comment

Sep 20 2023, 1:12 PM
ashoat added a comment to D9005: [lib] Introduce chat mention utilities for plain text.

I'm no longer using entityTextToRawString since I only need to extract alternative text. Please take a look at the latest diff, 31258. Throughout the entire stack, I use the useResolvedThreadInfo hook.

Sep 20 2023, 1:12 PM
ashoat accepted D9239: [keyserver] Prevent non-composable message types from being pinned on the keyserver.

One thing to note is that with ENG-4981, one of the short term solutions was to just disable the pin action for sidebar source messages.

Sep 20 2023, 1:08 PM
ashoat accepted D9238: [lib] Extract the unsupported sidebar source message types to one single source of truth.

Accepting to unblock; we can dedup everything and figure out the types later. This Linear comment will hopefully be helpful

Sep 20 2023, 1:01 PM
michal added inline comments to D9217: [lib] Add logic for handling faonut actions.
Sep 20 2023, 1:01 PM
ashoat accepted D9237: [lib] Update useCanCreateSidebarFromMessage to prevent sidebar creation for unsupported message types.

Should we use isMessageSidebarSourceReactionEditOrPin for this instead, and extend it to include messageTypes.CHANGE_ROLE? We'll want to eventually unify all of these checks in one place (see here). That will probably be in the message specs, but that doesn't mean we'll delete isMessageSidebarSourceReactionEditOrPin – it can be a helper function that checks the message specs

Sep 20 2023, 12:57 PM
ashoat requested changes to D9236: [keyserver] Update keyserver delete account endpoint to not require password.
  1. Please extend the test plan to include testing a request where the password field is not supplied. deleteAccountRequestInputValidator takes a password: t.maybe(tPassword), and it's not clear to me if that will crash when password is not supplied (as opposed to password: undefined or something)
  2. After this change, we no longer need a request passed to deleteAccount at all. While accountDeletionResponder will need to support a request for a while (for old clients), deleteAccount is downstream and should be abstracted from that
    • First, this will require some changes in this file so that request is no longer a param. See inline comments
    • Second, you'll want to update accountDeletionResponder to no longer pass request in
Sep 20 2023, 12:52 PM
michal accepted D9241: [services-lib] Add enum for authorization tokens.

Just some nits

Sep 20 2023, 12:46 PM
michal accepted D9243: [services-lib] Support auth token in HTTP middleware.
Sep 20 2023, 12:45 PM
tomek accepted D9095: [native] Block editing messages on search and pinned messages screens, and of the first message in a thread.
Sep 20 2023, 12:42 PM
michal added a comment to D9242: [services-lib] Use constant-time-eq for token verification.

I'm not really familiar with this stuff, so I might be completely wrong but:

Sep 20 2023, 12:40 PM
tomek requested review of D9245: [lib] Create thread store ops from updates in a spec.
Sep 20 2023, 12:39 PM
tomek requested review of D9244: [lib] Create empty specs for update types.
Sep 20 2023, 12:38 PM
ashoat closed D9234: [keyserver] Skip early exit in deleteThread if ignorePermissions.
Sep 20 2023, 12:28 PM
ashoat committed rCOMMd587cc151c26: [keyserver] Skip early exit in deleteThread if ignorePermissions.
Sep 20 2023, 12:28 PM
inka added a comment to D9217: [lib] Add logic for handling faonut actions.

@michal my idea is that every action will take care of the merging inside

Sep 20 2023, 12:21 PM
inka updated the diff for D9095: [native] Block editing messages on search and pinned messages screens, and of the first message in a thread.

Use constant. Move logic to ConnectedTextMessage, where other conditions for whether a message can be edited are checked, and a canEditMessage value used to create visibleEntryIDs which are used by TooltipContext to determine whether the item should be rendered, is created.

Sep 20 2023, 10:48 AM