Page MenuHomePhabricator
Feed Advanced Search

Jan 9 2023

kamil updated the diff for D5992: [native] add function to set database status after successful structure creation.

remove unused include

Jan 9 2023, 7:03 AM
kamil updated the diff for D5992: [native] add function to set database status after successful structure creation.

modify approach

Jan 9 2023, 7:00 AM
kamil published D6201: [native] add `clearSensitiveData` to Database Manager for review.
Jan 9 2023, 7:00 AM
kamil added inline comments to D5991: [native] add function to initialize `DatabaseQueryExecutor`.
Jan 9 2023, 6:57 AM
kamil updated the diff for D5991: [native] add function to initialize `DatabaseQueryExecutor`.

merge conditions

Jan 9 2023, 6:56 AM
kamil added a comment to D5994: [native] throw exception when migration process will fail.
In D5994#181372, @tomek wrote:

As a test plan, have you also checked creating a new db?

Jan 9 2023, 4:27 AM
kamil updated the test plan for D5994: [native] throw exception when migration process will fail.
Jan 9 2023, 4:24 AM
kamil closed D5990: [native] add `.cpp` file for `DatabaseManager`.
Jan 9 2023, 2:46 AM
kamil closed D5989: [native] refactor `clearSensitiveData()` method to static member of `SQLiteQueryExecutor`.
Jan 9 2023, 2:46 AM
kamil committed rCOMM61471c19b4cf: [native] refactor `clearSensitiveData()` method to static member of… (authored by kamil).
[native] refactor `clearSensitiveData()` method to static member of…
Jan 9 2023, 2:46 AM
kamil committed rCOMMf72c1cd26d9a: [native] add `.cpp` file for `DatabaseManager` (authored by kamil).
[native] add `.cpp` file for `DatabaseManager`
Jan 9 2023, 2:46 AM
kamil closed D5988: [native] refactor `migrate()` method to static member of `SQLiteQueryExecutor`.
Jan 9 2023, 2:45 AM
kamil committed rCOMM4eae7d155205: [native] refactor `migrate()` method to static member of `SQLiteQueryExecutor` (authored by kamil).
[native] refactor `migrate()` method to static member of `SQLiteQueryExecutor`
Jan 9 2023, 2:45 AM

Dec 30 2022

kamil accepted D6088: [web] Update a tooltip when it changes.
Dec 30 2022, 7:06 AM
kamil accepted D6087: [web] Reset tooltip label after a timeout.
Dec 30 2022, 6:59 AM
kamil accepted D6084: [web] Check if copy operation is successful.
Dec 30 2022, 6:30 AM
kamil accepted D6075: [web] Add option to modify an existing tooltip.
Dec 30 2022, 6:16 AM
kamil accepted D6074: [web] Delete comments disabling eslint checks.
Dec 30 2022, 5:57 AM
kamil accepted D6013: [web] Add copy-filled icon.
Dec 30 2022, 5:49 AM
kamil added inline comments to D5996: [native/iOS] initialize database on app start.
Dec 30 2022, 5:07 AM
kamil updated the diff for D5996: [native/iOS] initialize database on app start.

remove try {} catch() {} for background notifs

Dec 30 2022, 5:06 AM
kamil requested review of D5992: [native] add function to set database status after successful structure creation.

This looks like an inaccurate dependency flow to me. DatabaseManager provides getQueryExecutor method that allows to execute database queries in a way that is agnostic of the type of database used. This means it is an abstraction above SQLiteQueryExecutor, so SQLiteQueryExecutor should not call its methods. Looking at this differential, migrate() of SQLiteQueryExecutor is the only place we call this function from. Perhaps we could implement it here? Or even insert its code directly into relevant places in migrate method (due to its simplicity? Necessary constants to implement this method could be moved to DatabaseQueryExecutor header file or even refactored to some new common header file with database-related constants.

Dec 30 2022, 5:02 AM
kamil requested review of D5993: [native/CommCoreModule] add function check if database is malformed and needs deletion.

I have a different understanding of the flow here and how things should cooperate here, so let me ask a few questions to establish a common point of view. Sorry if I am not correct in my understanding.

Dec 30 2022, 5:01 AM
kamil added inline comments to D5991: [native] add function to initialize `DatabaseQueryExecutor`.
Dec 30 2022, 2:41 AM
kamil updated the diff for D5991: [native] add function to initialize `DatabaseQueryExecutor`.

remove log, extract code duplication to separate function

Dec 30 2022, 2:37 AM

Dec 29 2022

kamil requested review of D5989: [native] refactor `clearSensitiveData()` method to static member of `SQLiteQueryExecutor`.

I am confused about this reasoning. migrate() is called when SQLiteQueryExecutor constructor is called, which is called exactly once for a thread (thread_local). Therefore calling clearSensitiveData via DatabaseManager::getQueryEXecutor() will not call SQLiteQueryExecutor constructor.

That's not true.
According to the docs of thread_local: If the initialization throws an exception, the variable is not considered to be initialized, and initialization will be attempted again.
(sorry, I didn't linked this in summary but probably I should have done it). This means if the first call will throw an exception (see D5994) and as a result we will try do call clearSensitiveData which will call SQLiteQueryExecutor constructor, and the app will be stuck in a dead loop. Additionally I tested this and I can provide steps if you want to check it empirically.

Dec 29 2022, 6:50 AM
kamil published D6094: [keyserver] disable injecting redux state when policies are not accepted for review.
Dec 29 2022, 5:29 AM
kamil added a reviewer for D6093: [keyserver] disable socket connection when policies are not accepted: tomek.
Dec 29 2022, 5:26 AM
kamil published D6093: [keyserver] disable socket connection when policies are not accepted for review.
Dec 29 2022, 5:26 AM
kamil published D6092: [lib] validate policies after user login for review.
Dec 29 2022, 5:25 AM
kamil published D6091: [keyserver] move logic to fetch not acknowledged policies to separate function for review.
Dec 29 2022, 5:25 AM
kamil abandoned D5875: [lib] validate policies after user login.
Dec 29 2022, 5:23 AM

Dec 28 2022

kamil closed D6069: [native] display alert if register via SIWE fail.
Dec 28 2022, 7:38 AM
kamil committed rCOMM4cc66894c626: [native] display alert if register via SIWE fail (authored by kamil).
[native] display alert if register via SIWE fail
Dec 28 2022, 7:38 AM
kamil closed D6068: [native] show loading icon while Comm account being registered via SIWE.
Dec 28 2022, 7:37 AM
kamil committed rCOMMab6b50be6d72: [native] show loading icon while Comm account being registered via SIWE (authored by kamil).
[native] show loading icon while Comm account being registered via SIWE
Dec 28 2022, 7:37 AM
kamil added inline comments to D6069: [native] display alert if register via SIWE fail.
Dec 28 2022, 7:23 AM
kamil updated the diff for D6069: [native] display alert if register via SIWE fail.

throw error, update destructing

Dec 28 2022, 7:22 AM
kamil published D6069: [native] display alert if register via SIWE fail for review.
Dec 28 2022, 6:39 AM
kamil published D6068: [native] show loading icon while Comm account being registered via SIWE for review.
Dec 28 2022, 6:39 AM
kamil accepted D5971: [native] Extract from SidebarListModal code that can be reused for the subchannels modal.
Dec 28 2022, 5:08 AM

Dec 27 2022

kamil added a comment to D6025: [lib][keyserver] Introduce `SIWEAuthRequest` and `siweAuthRequestInputValidator`.

Regarding the LogInActionSource, I believe we added those to log_in for @kamil's work on the Privacy Policy stuff. While I'm not sure it's needed anymore for that work, it might be useful to know what part of the UI a SIWE request is coming from in the future. That said, we only have one place in the UI for a SIWE request today, and we won't be able to build any sort of "auto-log-in" feature for SIWE... so maybe there's no point to tracking the source, since there will only be one? Probably something we can come back to later.

Dec 27 2022, 2:24 AM

Dec 22 2022

kamil accepted D5972: [native] Add subchannnels modal.
Dec 22 2022, 6:53 AM
kamil requested changes to D5971: [native] Extract from SidebarListModal code that can be reused for the subchannels modal.
Dec 22 2022, 6:31 AM
kamil accepted D5951: [lib, native] Extract from `useSearchSidebars` code that can be used to obtain chats subchannels info..
Dec 22 2022, 5:42 AM
kamil added inline comments to D5987: [bugfix] Fix "unkown error" on login..
Dec 22 2022, 4:28 AM
kamil published D5996: [native/iOS] initialize database on app start for review.
Dec 22 2022, 3:32 AM
kamil published D5995: [native] clear database when malformation is detected for review.
Dec 22 2022, 3:31 AM
kamil published D5994: [native] throw exception when migration process will fail for review.
Dec 22 2022, 3:31 AM
kamil published D5993: [native/CommCoreModule] add function check if database is malformed and needs deletion for review.
Dec 22 2022, 3:31 AM
kamil published D5992: [native] add function to set database status after successful structure creation for review.
Dec 22 2022, 3:31 AM
kamil published D5991: [native] add function to initialize `DatabaseQueryExecutor` for review.
Dec 22 2022, 3:30 AM
kamil published D5990: [native] add `.cpp` file for `DatabaseManager` for review.
Dec 22 2022, 3:30 AM
kamil published D5989: [native] refactor `clearSensitiveData()` method to static member of `SQLiteQueryExecutor` for review.
Dec 22 2022, 3:30 AM
kamil published D5988: [native] refactor `migrate()` method to static member of `SQLiteQueryExecutor` for review.
Dec 22 2022, 3:30 AM

Dec 16 2022

kamil closed D5831: [native] Terms of Use & Privacy modal.
Dec 16 2022, 4:16 AM
kamil closed D5832: [native] policy acknowledgment handler.
Dec 16 2022, 4:16 AM
kamil committed rCOMMf55db4d9d888: [native] Terms of Use & Privacy modal (authored by kamil).
[native] Terms of Use & Privacy modal
Dec 16 2022, 4:16 AM
kamil committed rCOMMf5d4c7c052b7: [native] policy acknowledgment handler (authored by kamil).
[native] policy acknowledgment handler
Dec 16 2022, 4:16 AM
kamil closed D5845: [native] fix assumption that in `ThreadScreenPruner` app route is defined.
Dec 16 2022, 4:16 AM
kamil committed rCOMMd3be11bcd319: [native] fix assumption that in `ThreadScreenPruner` app route is defined (authored by kamil).
[native] fix assumption that in `ThreadScreenPruner` app route is defined
Dec 16 2022, 4:16 AM
kamil accepted D5876: [web] Refactor and renaming of typeahead utils..
Dec 16 2022, 2:01 AM
kamil added a comment to D5850: [web] Introducing keyboard support for typeahead.

One more question about the design, I checked Figma and looks like the outline shouldn't break scroll line, is it intended?

Screenshot 2022-12-16 at 10.50.24.png (255×359 px, 20 KB)

Dec 16 2022, 1:53 AM
kamil added a reviewer for D5850: [web] Introducing keyboard support for typeahead: tomek.

Starting reviewing from middle of the stack so adding someone with more context as blocking but I left some comments inline

Dec 16 2022, 1:37 AM

Dec 15 2022

kamil added inline comments to D5831: [native] Terms of Use & Privacy modal.
Dec 15 2022, 7:21 AM
kamil updated the diff for D5831: [native] Terms of Use & Privacy modal.

use useIsFocused hook

Dec 15 2022, 7:15 AM
kamil closed D5830: [web] policy acknowledgment handler.
Dec 15 2022, 6:16 AM
kamil closed D5829: [web] Terms of Use & Privacy modal.
Dec 15 2022, 6:16 AM
kamil committed rCOMM9ea15e542e53: [web] policy acknowledgment handler (authored by kamil).
[web] policy acknowledgment handler
Dec 15 2022, 6:16 AM
kamil committed rCOMM654dbdeec554: [web] Terms of Use & Privacy modal (authored by kamil).
[web] Terms of Use & Privacy modal
Dec 15 2022, 6:16 AM
kamil closed D5828: [lib] client function to call server and acknowledge policy.
Dec 15 2022, 6:16 AM
kamil closed D5860: [web] refactor modal API to return modal key.
Dec 15 2022, 6:16 AM
kamil committed rCOMMb7590f27a150: [lib] client function to call server and acknowledge policy (authored by kamil).
[lib] client function to call server and acknowledge policy
Dec 15 2022, 6:16 AM
kamil committed rCOMM27d7d118b3db: [web] refactor modal API to return modal key (authored by kamil).
[web] refactor modal API to return modal key
Dec 15 2022, 6:16 AM
kamil closed D5827: [lib] handle `policies_not_accepted` error on client.
Dec 15 2022, 6:16 AM
kamil closed D5826: [lib] client side logic for handling policy acknowledgment.
Dec 15 2022, 6:16 AM
kamil committed rCOMMfac4acc494a5: [lib] handle `policies_not_accepted` error on client (authored by kamil).
[lib] handle `policies_not_accepted` error on client
Dec 15 2022, 6:16 AM
kamil committed rCOMM685c6e10f284: [lib] client side logic for handling policy acknowledgment (authored by kamil).
[lib] client side logic for handling policy acknowledgment
Dec 15 2022, 6:16 AM
kamil closed D5824: [keyserver] validate if policies are acknowledged on request.
Dec 15 2022, 6:16 AM
kamil committed rCOMM3351f164fadb: [keyserver] validate if policies are acknowledged on request (authored by kamil).
[keyserver] validate if policies are acknowledged on request
Dec 15 2022, 6:16 AM
kamil updated the diff for D5829: [web] Terms of Use & Privacy modal.

update href

Dec 15 2022, 5:58 AM
kamil updated the diff for D5830: [web] policy acknowledgment handler.

fix: move href update to proper diff

Dec 15 2022, 5:55 AM
kamil updated the diff for D5830: [web] policy acknowledgment handler.

fix link href

Dec 15 2022, 5:52 AM
kamil updated the diff for D5832: [native] policy acknowledgment handler.

remove PersistGate

Dec 15 2022, 5:42 AM
kamil updated the diff for D5831: [native] Terms of Use & Privacy modal.

update copy, simplify function definition, fix dependencies

Dec 15 2022, 5:39 AM
kamil updated the diff for D5830: [web] policy acknowledgment handler.

use some, remove special string

Dec 15 2022, 3:54 AM
kamil updated the summary of D5829: [web] Terms of Use & Privacy modal.
Dec 15 2022, 3:43 AM
kamil updated the diff for D5829: [web] Terms of Use & Privacy modal.

update copy, add line height

Dec 15 2022, 3:43 AM
kamil updated the diff for D5860: [web] refactor modal API to return modal key.

introduce separate type for pushModal

Dec 15 2022, 3:25 AM
kamil updated the diff for D5826: [lib] client side logic for handling policy acknowledgment.

update type

Dec 15 2022, 3:10 AM
kamil closed D5823: [keyserver] refactor JSON endpoints to require policy acknowledgment.
Dec 15 2022, 2:54 AM
kamil closed D5822: [keyserver] add viewer acknowledgment fetcher.
Dec 15 2022, 2:54 AM
kamil committed rCOMM4ce42818a18f: [keyserver] refactor JSON endpoints to require policy acknowledgment (authored by kamil).
[keyserver] refactor JSON endpoints to require policy acknowledgment
Dec 15 2022, 2:54 AM
kamil committed rCOMMc389d36abeaf: [keyserver] add viewer acknowledgment fetcher (authored by kamil).
[keyserver] add viewer acknowledgment fetcher
Dec 15 2022, 2:54 AM
kamil closed D5821: [keyserver] add endpoint to acknowledge policy.
Dec 15 2022, 2:54 AM
kamil committed rCOMMe33199bde9f8: [keyserver] add endpoint to acknowledge policy (authored by kamil).
[keyserver] add endpoint to acknowledge policy
Dec 15 2022, 2:54 AM
kamil published D5875: [lib] validate policies after user login for review.
Dec 15 2022, 2:39 AM
kamil accepted D5852: Introduce message copy button on web.
Dec 15 2022, 1:10 AM

Dec 13 2022

kamil added a comment to D5831: [native] Terms of Use & Privacy modal.
In D5831#174834, @tomek wrote:

Two visual issues:

  1. Loading indicator isn't centered vertically
  2. Button height is different when loading indicator is present
Dec 13 2022, 9:26 AM
kamil updated the diff for D5831: [native] Terms of Use & Privacy modal.

remove disabling eslint rule

Dec 13 2022, 9:23 AM