Page MenuHomePhabricator
Feed Advanced Search

Jul 10 2023

michal accepted D8442: [blob-service] Introduce database types.
Jul 10 2023, 6:50 AM
michal updated the diff for D8386: [lib] Enable new id schema.

Rebase

Jul 10 2023, 6:23 AM
michal updated the diff for D8383: [web] Migrate to new id schema.

Move NEXT_CODE_VERSION changes to D8386

Jul 10 2023, 6:22 AM
michal added inline comments to D8350: [web/native] Add lastCommunicatedPlatformDetails to redux.
Jul 10 2023, 6:12 AM
michal added a comment to D8355: [lib] Generate converters from validators.

I've also checked the converted db with the validators:

const { messages, threads, messageStoreThreads } =
        await commCoreModule.getClientDBStore();
Jul 10 2023, 6:04 AM
michal accepted D8438: [services-lib] Add integer and timestamp parsing helpers.
Jul 10 2023, 4:30 AM
michal updated the diff for D8460: [clients] Handle notifs with old id schema.

Extracted logic into two functions - one for threadID and second one for messageInfos.

Jul 10 2023, 3:33 AM
michal requested review of D8460: [clients] Handle notifs with old id schema.
Jul 10 2023, 1:36 AM

Jul 5 2023

michal added a reviewer for D8387: [keyserver] Validate siweNonceResponder: kamil.
Jul 5 2023, 9:11 AM
michal added inline comments to D8350: [web/native] Add lastCommunicatedPlatformDetails to redux.
Jul 5 2023, 6:26 AM
michal updated the diff for D8385: [native] Migrate to new id schema.

Use keyserverPrefixID

Jul 5 2023, 4:02 AM
michal updated the diff for D8382: [lib] Add conversions for draft store.

Address review.

Jul 5 2023, 3:58 AM
michal updated the diff for D8355: [lib] Generate converters from validators.

Fixed comment

Jul 5 2023, 3:39 AM

Jul 4 2023

michal updated the diff for D8355: [lib] Generate converters from validators.

Removed some uses of any, and annotated the rest. Additionaly:

  • here's a minimal repro of the error: flow playground
  • this is handled in the same way as we handled the error in D7488
Jul 4 2023, 7:20 AM
michal updated the diff for D8386: [lib] Enable new id schema.

Update summary

Jul 4 2023, 6:00 AM
michal updated the diff for D8386: [lib] Enable new id schema.

Moved all state version bumps, and FUTURE_CODE_VERSION replacements here, so nothing will break if we land only part of this stack.

Jul 4 2023, 5:58 AM
michal updated the diff for D8385: [native] Migrate to new id schema.

Get all stores at the same time and await all updates concurrently. Extract conversion functions.

Jul 4 2023, 5:57 AM
michal updated the diff for D8384: [native] Add utils for migrating message store.

Update the migration functions so instead of fetching the stores, they take them as an argument and return operations.

Jul 4 2023, 5:55 AM
michal updated the diff for D8383: [web] Migrate to new id schema.

Address review

Jul 4 2023, 3:27 AM
michal added inline comments to D8351: [web/native] Send platform details on http communication.
Jul 4 2023, 3:12 AM
michal updated the diff for D8351: [web/native] Send platform details on http communication.

Address review

Jul 4 2023, 3:12 AM
michal updated the diff for D8350: [web/native] Add lastCommunicatedPlatformDetails to redux.

Handle other auth actions

Jul 4 2023, 2:53 AM
michal added inline comments to D8370: [lib] Introduce blobURI multimedia message field.
Jul 4 2023, 2:26 AM

Jul 3 2023

michal updated the diff for D8383: [web] Migrate to new id schema.

Respond to review

Jul 3 2023, 8:13 AM
michal updated the diff for D8351: [web/native] Send platform details on http communication.

Set new platform details concurrently with policy validation. We need to block execution before running endpoint logic, because it might depend on the version

Jul 3 2023, 7:17 AM
michal accepted D8395: [web] add SQLite files to `.gitignore`.
Jul 3 2023, 6:23 AM
michal accepted D8369: [desktop] add option to toggle shared worker dev dev-tools.
Jul 3 2023, 4:23 AM
michal accepted D8396: [blob-service] Require holder and blob_hash in 'remove' endpoint.
Jul 3 2023, 3:50 AM
michal accepted D8408: [services][commtest] Replace gRPC Blob client with HTTP.

Looks good, we could potentially use reqwest:Url and .set_port(), .join() for URL manipulation.

Jul 3 2023, 3:50 AM
michal added inline comments to D8370: [lib] Introduce blobURI multimedia message field.
Jul 3 2023, 2:48 AM
michal accepted D8293: [web] Add to MessageSearchContext results related information.
Jul 3 2023, 2:32 AM

Jun 30 2023

michal accepted D8327: [web] Fix message search results for old query appearing.
Jun 30 2023, 5:37 AM
michal requested review of D8387: [keyserver] Validate siweNonceResponder.
Jun 30 2023, 4:28 AM
michal requested review of D8386: [lib] Enable new id schema.
Jun 30 2023, 3:42 AM
michal requested review of D8385: [native] Migrate to new id schema.
Jun 30 2023, 3:41 AM
michal requested review of D8384: [native] Add utils for migrating message store.
Jun 30 2023, 3:32 AM
michal requested review of D8383: [web] Migrate to new id schema.
Jun 30 2023, 3:22 AM
michal requested review of D8382: [lib] Add conversions for draft store.
Jun 30 2023, 2:57 AM
michal requested review of D8381: [lib] Add connectionInfoValidator.
Jun 30 2023, 2:47 AM
michal updated the diff for D8355: [lib] Generate converters from validators.

Added converters for ConnectionInfo and CalendarFilter

Jun 30 2023, 2:31 AM
michal updated the diff for D8352: [web] Move createAsyncMigrate to lib.

Add rootKey

Jun 30 2023, 2:27 AM
michal accepted D8367: [blob-service] Support HTTP Range header.

LGTM too!

Jun 30 2023, 2:18 AM
michal added inline comments to D8370: [lib] Introduce blobURI multimedia message field.
Jun 30 2023, 1:32 AM

Jun 29 2023

michal updated the diff for D8355: [lib] Generate converters from validators.

Improve any-casts. Now they are cast immediately to the correct type, similar to how it is done in lib/utils/validation-utils.js. The main problem is that flow doesn't constrain th TType to one of it's variants (e.g. TInterface or TUnion) after checking the meta.kind field so we need to do that ourselves with the any casts.

Jun 29 2023, 11:16 AM
michal updated the diff for D8351: [web/native] Send platform details on http communication.

Await the setCookiePlatformDetails

Jun 29 2023, 10:48 AM
michal added a comment to D8355: [lib] Generate converters from validators.
  1. I worry that the codegenned file might get out of sync with its inputs. Before landing, can you create a Linear task to add a CI job that regenerates the file and confirms there are no changes? We should make sure we complete that task before we ship this project.
Jun 29 2023, 7:37 AM
michal added a comment to D8369: [desktop] add option to toggle shared worker dev dev-tools.

I suspect this is going to throw an error if you close the window without closing the whole app (macOS-style) and run the new menu option. You could probably use the global mainWindow for inspectSharedWorker (with a check if it exists) instead.

Jun 29 2023, 7:18 AM
michal added a comment to D8367: [blob-service] Support HTTP Range header.

A small thing, and shouldn't matter performance-wise, but you should be able to take the range_header variable as a reference in the function, instead of taking it as an owned value and cloning it with to_owned().

Jun 29 2023, 7:10 AM
michal added a comment to D8367: [blob-service] Support HTTP Range header.

Nit: I don't we need the two // Parse range header comments, now that we have a function with the same name

Jun 29 2023, 5:46 AM
michal added a comment to D8367: [blob-service] Support HTTP Range header.

We could merge the two top-most matches and remove unnecessary clone like this:

let (range_start, range_end): (u64, u64) = match &range_header {
    Some(web::Header(Range::Bytes(ranges))) => {
      if ranges.len() > 1 {
        return Err(ErrorBadRequest("Multiple ranges not supported"));
      }
      <...rest of the code...>
   }
   Some(web::Header(Range::Unregistered(..))) => {
      return Err(ErrorBadRequest("Use ranges registered at IANA"));
    }
    None => (0, file_size - 1),
};

which I personally find a little easier to read

Jun 29 2023, 5:30 AM
michal added a comment to D8327: [web] Fix message search results for old query appearing.

Instead of using another variable, could we pass query to appendResults and check if it's still the same?

Jun 29 2023, 5:03 AM
michal accepted D8301: [web] Remember resutls in search modal.
Jun 29 2023, 5:03 AM
michal added a comment to D8293: [web] Add to MessageSearchContext results related information.

Do you think it would make sense to:

Jun 29 2023, 5:02 AM

Jun 28 2023

michal requested review of D8356: [lib] Fix state check with new ID schema.
Jun 28 2023, 4:47 AM
michal requested review of D8355: [lib] Generate converters from validators.
Jun 28 2023, 4:40 AM
michal requested review of D8354: [lib] Fix threadPermissionInfoValidator.
Jun 28 2023, 4:32 AM
michal requested review of D8353: [native] Add support for async migrations.
Jun 28 2023, 4:28 AM
michal added inline comments to D8351: [web/native] Send platform details on http communication.
Jun 28 2023, 4:14 AM
michal requested review of D8352: [web] Move createAsyncMigrate to lib.
Jun 28 2023, 4:12 AM
michal requested review of D8351: [web/native] Send platform details on http communication.
Jun 28 2023, 3:35 AM
michal requested review of D8350: [web/native] Add lastCommunicatedPlatformDetails to redux.
Jun 28 2023, 2:14 AM

Jun 27 2023

michal requested review of D8305: [electron-update-server] Introduce new version.

The dockerfile needs to be built with the context of the root folder (because it's a member of the yarn workspace) and it's on dockerhub so we need to keep track of the current tag/version. To me, it makes sense to keep track of that in a docker-compose.yml.

Jun 27 2023, 3:01 AM

Jun 23 2023

michal requested review of D8305: [electron-update-server] Introduce new version.
Jun 23 2023, 7:18 AM
michal added inline comments to D8301: [web] Remember resutls in search modal.
Jun 23 2023, 5:53 AM
michal accepted D8302: [web] Add message search button.
Jun 23 2023, 5:30 AM
michal added inline comments to D8301: [web] Remember resutls in search modal.
Jun 23 2023, 5:27 AM
michal accepted D8293: [web] Add to MessageSearchContext results related information.
Jun 23 2023, 5:24 AM
michal accepted D8291: [web] Inline MessageSearchModalContent.
Jun 23 2023, 3:40 AM
michal accepted D8274: [web] Use message search context in message search modal.
Jun 23 2023, 3:37 AM
michal added a comment to D8274: [web] Use message search context in message search modal.

Makes sense, thanks for explaining

Jun 23 2023, 3:36 AM
michal accepted D8290: [web] Extract useParseSearchResults.
Jun 23 2023, 2:35 AM
michal accepted D8275: [web] Make pressing enter initiate search.
Jun 23 2023, 2:13 AM
michal added a comment to D8274: [web] Use message search context in message search modal.

Also, the query won't be cleared if you manually remove text in the textbox (compared to clicking the X button) which I think I would find confusing.

Jun 23 2023, 2:13 AM
michal accepted D8273: [web] Introduce onClearText to Search.
Jun 23 2023, 2:06 AM

Jun 22 2023

michal planned changes to D8073: [keyserver] Add fetch latest messages endpoint.
Jun 22 2023, 3:52 AM
michal planned changes to D8235: [web] Fetch latest messages in chat list.
Jun 22 2023, 3:52 AM
michal added a comment to D8274: [web] Use message search context in message search modal.

Not sure what the status of the "Search" button is, is the plan for it to be implemented in other search modals too, or is it just a one-off? Do you think it would make sense to add it (as an option) to the SearchModal?

Jun 22 2023, 3:45 AM

Jun 19 2023

michal accepted D8241: [web] Add footers to message search modal.
Jun 19 2023, 9:16 AM
michal accepted D8240: [web] Add message search modal.
Jun 19 2023, 9:15 AM

Jun 16 2023

michal added inline comments to D8074: [native] Fetch latest messages in chat list.
Jun 16 2023, 7:49 AM
michal added inline comments to D8073: [keyserver] Add fetch latest messages endpoint.
Jun 16 2023, 6:52 AM
michal requested review of D8235: [web] Fetch latest messages in chat list.
Jun 16 2023, 4:00 AM
michal requested review of D8234: [web] Use react-window.
Jun 16 2023, 3:43 AM
michal added inline comments to D8074: [native] Fetch latest messages in chat list.
Jun 16 2023, 2:51 AM
michal updated the diff for D8074: [native] Fetch latest messages in chat list.

Updated to reflect changes in D8073, fixed an issue where sometimes threads wouldn't display.

Jun 16 2023, 2:50 AM
michal updated the diff for D8073: [keyserver] Add fetch latest messages endpoint.
  • Fixed small issues
  • Instead of passing joinedThreads to fetchMessageInfo I instead add a condition to the sql query role > 0 (more context here)
  • On the client threads are sorted according to lastUpdatedTimeIncludingSidebars. This means that:
    • we could fetch last message for a sidebar
    • client still doesn't have messages for the parent thread, so it's not displayed
    • later client scrolls down and fetches last message for the parent thread
    • parent thread in displayed, but it jumps up because it's sidebar has an earlier messages To fix that I also fetch the last message for parent threads of any sidebars. This complicates the lastMessage logic (I now have to filter the additional parent threads) so now it's done on the server and passed to the client.
Jun 16 2023, 2:44 AM

Jun 15 2023

michal accepted D8224: [web] Unify behaviour of chat composer with native.
Jun 15 2023, 8:31 AM
michal accepted D8223: [web] Change alert type in UserListItem.
Jun 15 2023, 8:31 AM
michal accepted D6744: [keyserver] Block creating new chats with users that you are not friends with.
Jun 15 2023, 8:31 AM
michal updated the diff for D8208: [electron-update-server] Ignore older releases.

Moved all conditions (version has to be newer, release has to have assets) to the find condition instead of skipping them after one release is chosen. This way we don't ignore the rest of release from github api

Jun 15 2023, 8:13 AM

Jun 14 2023

michal requested review of D8208: [electron-update-server] Ignore older releases.
Jun 14 2023, 9:46 AM
michal updated the diff for D8010: [native] Use search users in chat composer.

Fix flow

Jun 14 2023, 2:33 AM
michal updated the diff for D8009: [lib] Include searchUsers results in getPotentialMemberItems.

Rebase

Jun 14 2023, 2:32 AM
michal planned changes to D8010: [native] Use search users in chat composer.
Jun 14 2023, 2:28 AM
michal added inline comments to D8010: [native] Use search users in chat composer.
Jun 14 2023, 1:23 AM
michal updated the diff for D8010: [native] Use search users in chat composer.

Catch errors

Jun 14 2023, 1:22 AM

Jun 12 2023

michal accepted D8143: [keyserver] Validate search endpoint response.

The output validation looks good but you also need to modify the input logic.

Jun 12 2023, 2:35 AM

Jun 2 2023

michal requested review of D8074: [native] Fetch latest messages in chat list.
Jun 2 2023, 8:59 AM
michal requested review of D8073: [keyserver] Add fetch latest messages endpoint.
Jun 2 2023, 6:30 AM
michal added inline comments to D8013: [web] Use search users in chat composer.
Jun 2 2023, 5:41 AM