Page MenuHomePhorge
Feed Search

Nov 4 2023

ashoat requested review of D9694: [Flow202][lib][skip-ci] [2/23] Fix Flow issues with useDispatch / useSelector being underconstrained.
Nov 4 2023, 7:15 PM
ashoat requested review of D9693: [Flow202][lib][skip-ci] [1/23] Fix Flow issues with React hooks being underconstrained.
Nov 4 2023, 7:15 PM
ashoat requested review of D9692: [Flow202][lib][skip-ci] [0/23] Fix Flow issues relating to unsealed objects.
Nov 4 2023, 7:15 PM
ashoat requested review of D9691: [RN72][skip-ci] Update Flow to 0.202.1.
Nov 4 2023, 7:15 PM
ashoat requested review of D9690: [RN72][skip-ci] Update React Native and React package versions.
Nov 4 2023, 7:14 PM

Nov 2 2023

ashoat accepted D9217: [lib] Add logic for handling faonut actions.

Great!

Nov 2 2023, 7:53 PM
ashoat added inline comments to D9648: [lib][web][native] Refactor actions in user-actions.js pt.3 - login.
Nov 2 2023, 7:51 PM
ashoat accepted D9677: [lib] Add some unit tests for `invertObjectToMap<K, V>(obj: { [K]: V })`.

Sure

Nov 2 2023, 7:50 PM
ashoat accepted D9676: [lib] Introduce `invertObjectToMap`.
Nov 2 2023, 7:12 PM
ashoat added inline comments to D9217: [lib] Add logic for handling faonut actions.
Nov 2 2023, 6:03 PM
ashoat added inline comments to D9642: [native] implement keyserver list ui.
Nov 2 2023, 5:55 PM
ashoat added inline comments to D9611: [lib] handle Tunnelbroker messages.
Nov 2 2023, 5:54 PM
ashoat accepted D9675: [keyserver] Write a script to compare database role permissions match expectations.
Nov 2 2023, 5:00 PM
ashoat added a comment to D9657: [keyserver] Fetch user infos together with other data.

Might be good to create (and link) a task here to investigate that issue

Nov 2 2023, 2:26 PM
ashoat accepted D9500: [keyserver] Remove cookieSources.
Nov 2 2023, 2:20 PM
ashoat added a comment to D9143: [lib] Add memoization to useKeyserverCall.
In D9143#270092, @inka wrote:

We already pass all actions to a hook (even in class components, we use useServerCall) so I imagine there is some way to do it. But I won't insist

boundCallServerEndpointSelector is called inside of callKeyserverEndpoint, which is being called inside of the function returned by ActionFunc. This would be equivalent to being able to use a selector inside of callServerEndpoint, which I don't think is possible.
Sorry, I think I called an action the wrong thing maybe.

Nov 2 2023, 2:15 PM
ashoat requested changes to D9217: [lib] Add logic for handling faonut actions.

Requesting changes to make sure I at least get a satisfactory explanation before this lands (ideally a proper solution)

Nov 2 2023, 2:13 PM
ashoat added inline comments to D9648: [lib][web][native] Refactor actions in user-actions.js pt.3 - login.
Nov 2 2023, 2:08 PM
ashoat added inline comments to D9668: [native] Support displaying encrypted avatars.
Nov 2 2023, 2:02 PM
ashoat added inline comments to D9667: [lib/native] add keyserver url validation logic and error handling to the add keyserver screen.
Nov 2 2023, 2:01 PM
ashoat accepted D9673: [lib] correctly skip using established socket when urlPrefix is overriden.
Nov 2 2023, 2:00 PM
ashoat accepted D9666: [lib/native] introduce useIsKeyserverURLValid hook.
Nov 2 2023, 2:00 PM
ashoat resigned from D9670: [identity] pull out CORS logic.

New dependencies look good. Rust code looks simple, but will leave it for somebody else to review

Nov 2 2023, 1:56 PM
ashoat accepted D9672: [web] add client interceptors for grpc-web.

JS code looks fine but I don't really know anything about gRPC interceptors... should somebody else with context on those review this as well?

Nov 2 2023, 1:55 PM
ashoat added inline comments to D9671: [web] add flow types for grpc-web unary interceptor.
Nov 2 2023, 1:54 PM
ashoat accepted D9671: [web] add flow types for grpc-web unary interceptor.

If you want to keep the change to Metadata (or disagree with any of the other comments), please re-request review

Nov 2 2023, 1:50 PM

Nov 1 2023

ashoat added inline comments to D9664: [lib] add conditions for adding keyserver to the keyserver store.
Nov 1 2023, 6:45 PM
ashoat added inline comments to D9667: [lib/native] add keyserver url validation logic and error handling to the add keyserver screen.
Nov 1 2023, 5:39 PM
ashoat added inline comments to D9666: [lib/native] introduce useIsKeyserverURLValid hook.
Nov 1 2023, 5:37 PM
ashoat added a comment to D9664: [lib] add conditions for adding keyserver to the keyserver store.

Nit – we usually use } else if in reducers. It doesn't matter since each condition returns, but it would be good to be consistent

Nov 1 2023, 5:31 PM
ashoat accepted D9663: [lib] Introduce `decodeRolePermissionBitmask`.

Please make sure to address the last two comments before landing

Nov 1 2023, 5:21 PM
ashoat accepted D9662: [lib] Introduce `rolePermissionToBitmaskHex`.
Nov 1 2023, 5:16 PM
ashoat accepted D9599: [keyserver] Write MariaDB migration to remove incorrect permission from roles.

Got it, let's keep the WHERE. Only feedback to apply here is stripping the semicolon.

Nov 1 2023, 4:55 PM
ashoat accepted D9652: [keyserver] Call canToggleMessagePin in toggleMessagePinForThread.
Nov 1 2023, 2:28 PM
ashoat accepted D9638: [lib/web/native] Unify logic to check canTogglePins in web and native tooltips.
Nov 1 2023, 2:21 PM
ashoat added inline comments to D9650: [keyserver][web] Refactor getInitialReduxState action.
Nov 1 2023, 2:02 PM

Oct 31 2023

ashoat added a reverting change for rCOMM7471d1dc653f: [native] Temporary changes for staff release: rCOMM591450a5d9ba: Revert "[native] Temporary changes for staff release".
Oct 31 2023, 2:56 PM
ashoat committed rCOMM591450a5d9ba: Revert "[native] Temporary changes for staff release".
Oct 31 2023, 2:56 PM
ashoat committed rCOMM46307102641a: [native] codeVersion -> 282.
Oct 31 2023, 2:56 PM
ashoat committed rCOMM7471d1dc653f: [native] Temporary changes for staff release.
Oct 31 2023, 2:56 PM
ashoat committed rCOMMf98092e94f5f: [native] codeVersion -> 281.
Oct 31 2023, 2:56 PM
ashoat committed rCOMM0c3066d0268a: [web][keyserver] codeVersion -> 39.
Oct 31 2023, 1:58 PM
ashoat closed D9647: [lib] Avoid unnecessary Set construction in RadixTree.getAllMatchingExactly.
Oct 31 2023, 1:55 PM
ashoat committed rCOMM74aeaf7eac1b: [lib] Avoid unnecessary Set construction in RadixTree.getAllMatchingExactly.
Oct 31 2023, 1:55 PM
ashoat closed D9646: [lib] Get rid of SentencePrefixSearchIndex.entries.
Oct 31 2023, 1:55 PM
ashoat committed rCOMM5153064608b8: [lib] Get rid of SentencePrefixSearchIndex.entries.
Oct 31 2023, 1:55 PM
ashoat added inline comments to D9626: [lib] Introduce RadixTree.
Oct 31 2023, 12:17 PM
ashoat published D9647: [lib] Avoid unnecessary Set construction in RadixTree.getAllMatchingExactly for review.
Oct 31 2023, 12:11 PM
ashoat published D9646: [lib] Get rid of SentencePrefixSearchIndex.entries for review.
Oct 31 2023, 12:11 PM
ashoat added inline comments to D9626: [lib] Introduce RadixTree.
Oct 31 2023, 11:35 AM

Oct 30 2023

ashoat added a comment to D9638: [lib/web/native] Unify logic to check canTogglePins in web and native tooltips.

(toggleMessagePinForThread changes can probably be in a separate diff)

Oct 30 2023, 11:44 PM
ashoat added a comment to D9638: [lib/web/native] Unify logic to check canTogglePins in web and native tooltips.

Interesting that toggleMessagePinForThread is missing the threadInfo.sourceMessageID !== item.messageInfo.id check. I guess that can't happen, since it only takes a messageID, and the parent channel gets fetched from that (rather than the corresponding sidebar).

Oct 30 2023, 11:43 PM
ashoat requested changes to D9637: [lib] Introduce `rolePermissionToBitmaskHex`.

I don't think your original approach of having a fixed length ThreadRolePermissionsBlob makes sense based on commentary here. This would require a separate "position" for every single combination of prefixes, which would likely be a very "sparse" matrix.

Oct 30 2023, 8:38 PM
ashoat requested changes to D9638: [lib/web/native] Unify logic to check canTogglePins in web and native tooltips.

Looks good, just a question:

Oct 30 2023, 8:11 PM
ashoat added a comment to D9634: [native] Check isInvalidPinSource on native.

Ah sorry, I thought this was updating web and native, but it's actually updating two places in native. We should obviously factor this out so we're not copy-pasting code, but I suppose that will be handled in the subsequent diff (as indicated in the diff description)

Oct 30 2023, 7:29 PM
ashoat added inline comments to D9637: [lib] Introduce `rolePermissionToBitmaskHex`.
Oct 30 2023, 7:27 PM
ashoat added inline comments to D9636: [keyserver][lib][native] Refactor getVersion action.
Oct 30 2023, 7:26 PM
ashoat closed D9627: [lib] Use RadixTree in SearchIndex.
Oct 30 2023, 7:24 PM
ashoat committed rCOMMc3231ddf2158: [lib] Use RadixTree in SearchIndex.
Oct 30 2023, 7:24 PM
ashoat closed D9626: [lib] Introduce RadixTree.
Oct 30 2023, 7:24 PM
ashoat committed rCOMM755557751d79: [lib] Introduce RadixTree.
Oct 30 2023, 7:24 PM
ashoat accepted D9634: [native] Check isInvalidPinSource on native.

How come this adds isInvalidPinSource for both web and native? Is that because the diff that adds it to one and not the other hasn't been landed yet? Does that diff now need to be abandoned?

Oct 30 2023, 7:22 PM
ashoat updated the diff for D9626: [lib] Introduce RadixTree.

Lint fixes

Oct 30 2023, 7:03 PM
ashoat attached a referenced file: F842952: Screenshot 2023-10-30 at 2.47.26 PM.png.
Oct 30 2023, 6:48 PM
ashoat added inline comments to D9627: [lib] Use RadixTree in SearchIndex.
Oct 30 2023, 6:47 PM
ashoat added a comment to D9626: [lib] Introduce RadixTree.

I tested performance again and it's about the same as it was in the last revision of the diff

Oct 30 2023, 6:45 PM
ashoat updated the diff for D9626: [lib] Introduce RadixTree.
  1. @tomek’s nit about ordering about conditions
  2. @tomek’s feedback about not needing a stack for exact match
  3. @tomek’s feedback to use a map from first char for children (instead of an array) to improve perf
  4. To maintain compatibility with old approach, I updated the code to "dedup" identical values using Sets
  5. To reduce unnecessary memory usage, I got rid of leaf: false
Oct 30 2023, 6:44 PM
ashoat accepted D9635: [scripts] remove cargo-lipo from rustup setup.
Oct 30 2023, 6:30 PM
ashoat accepted D9629: [keyserver] Remove table prefix in sql query.
Oct 30 2023, 3:58 PM
ashoat added a comment to D9599: [keyserver] Write MariaDB migration to remove incorrect permission from roles.

Please don't land this without creating follow-up tasks

Oct 30 2023, 3:07 PM
ashoat added inline comments to D9598: [keyserver] Set last_message correctly for threads.
Oct 30 2023, 1:15 PM
ashoat added inline comments to D9167: [lib] Introduce new avatar type for encrypted images.
Oct 30 2023, 1:10 PM
ashoat added inline comments to D9620: Encrypt notifications for web clients supporting decryption.
Oct 30 2023, 1:04 PM
ashoat added inline comments to D9606: [lib] introduce Tunnelbroker Context.
Oct 30 2023, 1:02 PM

Oct 28 2023

ashoat closed D9625: [lib] Avoid constructing multiple duplicate tokenizers in SearchIndex.
Oct 28 2023, 2:31 PM
ashoat committed rCOMM6998939bd1b8: [lib] Avoid constructing multiple duplicate tokenizers in SearchIndex.
Oct 28 2023, 2:31 PM

Oct 27 2023

ashoat accepted D9605: [keyserver] Fix existing memberships.last_message in migration.

I ran this query in my local environment, which includes a copy of my keyserver's production database from last month. It matched 904 rows and updated 40 rows. It only took 0.122s to complete!

Oct 27 2023, 8:24 PM
ashoat accepted D9598: [keyserver] Set last_message correctly for threads.

Both queries had great performance!! The SELECT took only 0.009s, and the UPDATE took even less (0.006s)

Oct 27 2023, 7:19 PM
ashoat requested review of D9627: [lib] Use RadixTree in SearchIndex.
Oct 27 2023, 6:56 PM
ashoat requested review of D9626: [lib] Introduce RadixTree.
Oct 27 2023, 6:53 PM
ashoat requested review of D9625: [lib] Avoid constructing multiple duplicate tokenizers in SearchIndex.
Oct 27 2023, 6:49 PM
ashoat added a reviewer for D9622: [lib][web][native] Move deviceToken to keyserverStore: marcin.

It might make sense for @marcin to take a look at this given his experience with notifs

Oct 27 2023, 6:46 PM
ashoat accepted D9451: [web/native/keyserver] Start using new url facts.
Oct 27 2023, 3:00 PM
ashoat accepted D9396: [keyserver] Update CORS.
Oct 27 2023, 2:59 PM
ashoat added inline comments to D9610: [native] create Tunnelbroker session.
Oct 27 2023, 1:26 PM

Oct 26 2023

ashoat added a comment to D9602: [CI] fix iOS build issue following D9470.

cargo-lipo is still referenced in scripts/ensure_rustup_setup.sh – would be good to clean that up

Oct 26 2023, 10:13 PM
ashoat committed rCOMM78a89589c17c: Revert "[native] Temporary changes for staff release".
Oct 26 2023, 8:17 PM
ashoat added a reverting change for rCOMM3a03c92aa77e: [native] Temporary changes for staff release: rCOMM78a89589c17c: Revert "[native] Temporary changes for staff release".
Oct 26 2023, 8:17 PM
ashoat committed rCOMM06d59f6112b1: [native] codeVersion -> 280.
Oct 26 2023, 8:17 PM
ashoat committed rCOMM3a03c92aa77e: [native] Temporary changes for staff release.
Oct 26 2023, 8:17 PM
ashoat committed rCOMM5d9df4a80e79: [native] codeVersion -> 279.
Oct 26 2023, 8:17 PM
ashoat committed rCOMMe6e238915bc7: [web][keyserver] codeVersion -> 38.
Oct 26 2023, 8:14 PM
ashoat committed rCOMMa93ccf95486d: [native] codeVersion -> 277.
Oct 26 2023, 8:11 PM
ashoat committed rCOMM5bf5117dc972: [web][keyserver] codeVersion -> 37.
Oct 26 2023, 8:09 PM
ashoat requested changes to D9599: [keyserver] Write MariaDB migration to remove incorrect permission from roles.

I ran this query to make sure admins don't have descendant_open_voiced and it looks safe:

Oct 26 2023, 7:57 PM
ashoat accepted D9613: [CI] run ios/android CI on ios_ci/android_ci branches.
Oct 26 2023, 7:37 PM
ashoat added a comment to D9598: [keyserver] Set last_message correctly for threads.

I think it would be good to test the query in production before landing this. In particular, I'm curious how long it takes. Two ideas come to mind:

Oct 26 2023, 7:35 PM
ashoat added inline comments to D9608: [native] Redux persist migration to remove incorrect permissions from threads.
Oct 26 2023, 7:14 PM
ashoat closed D9581: [keyserver] Remove extraneous verifyClientSupported calls.
Oct 26 2023, 6:34 PM
ashoat committed rCOMMa13ec69613cb: [keyserver] Remove extraneous verifyClientSupported calls.
Oct 26 2023, 6:34 PM