Page MenuHomePhabricator
Feed Advanced Search

Mar 27 2024

inka requested review of D11394: [lib][web][native] Handle idnentity login in reducers.
Mar 27 2024, 4:27 AM
inka requested review of D11393: [lib] Add preRequestUserState to identity login.
Mar 27 2024, 4:10 AM

Mar 25 2024

inka added a comment to D11374: [lib] Avoid clearing CSAT on identityRegisterActionTypes.success.

Here is the task: https://linear.app/comm/issue/ENG-7428/discuss-how-to-set-csat-on-native

Mar 25 2024, 9:11 AM
inka added a comment to D11374: [lib] Avoid clearing CSAT on identityRegisterActionTypes.success.

On web we handle register and login in a special reducer - D11238. This was done following the discussion in D11022. This diff should then remove handling identityRegisterActionTypes.success from reduceServicesAccessToken in web/redux/services-access-token-reducer.js
But I still don't know how we handle / plan to handle CSAT changes while the user is logged in (which I think are possible if identity invalidates the session? cc. @varun )

Mar 25 2024, 3:18 AM
inka added a comment to D11374: [lib] Avoid clearing CSAT on identityRegisterActionTypes.success.

In the issue you said:

However, reduceServicesAccessToken does not have code to set the CSAT on identityRegisterActionTypes.success. The end result is that the CSAT is cleared on this action, after initially being set by AccessTokenHandler via setAccessTokenActionType (triggered by getCommServicesAuthMetadataEmitter that comes before identityRegisterActionTypes.success).

Mar 25 2024, 3:02 AM

Mar 21 2024

inka closed D11365: [lib] Fix auth with non authoritative keyserver error.
Mar 21 2024, 3:44 AM
inka committed rCOMMeb9e23ede082: [lib] Fix auth with non authoritative keyserver error (authored by inka).
[lib] Fix auth with non authoritative keyserver error
Mar 21 2024, 3:44 AM
inka requested review of D11365: [lib] Fix auth with non authoritative keyserver error.
Mar 21 2024, 1:27 AM

Mar 20 2024

inka accepted D11335: [native][lib][web] update IdentityServiceClient implementations and useLogOut in user-actions.js.

Great, thank you!

Mar 20 2024, 4:58 AM

Mar 19 2024

inka updated the diff for D11141: [IGNORE] Client hacks for testing multiple keyservers.

Rebase

Mar 19 2024, 9:11 AM
inka closed D11350: [web] Stop setting CSAT on initial redux state action.
Mar 19 2024, 8:51 AM
inka committed rCOMM31f3b9f2cdd2: [web] Stop setting CSAT on initial redux state action (authored by inka).
[web] Stop setting CSAT on initial redux state action
Mar 19 2024, 8:51 AM
inka updated the diff for D11350: [web] Stop setting CSAT on initial redux state action.

Stop sending commServicesAccessToken from keyserver

Mar 19 2024, 8:32 AM
inka added inline comments to D11335: [native][lib][web] update IdentityServiceClient implementations and useLogOut in user-actions.js.
Mar 19 2024, 5:51 AM
inka requested review of D11350: [web] Stop setting CSAT on initial redux state action.
Mar 19 2024, 5:48 AM
inka added inline comments to D11335: [native][lib][web] update IdentityServiceClient implementations and useLogOut in user-actions.js.
Mar 19 2024, 5:40 AM

Mar 18 2024

inka closed D11327: [keyserver] Remove deprectaed uses of updateTypes.UPDATE_CURRENT_USER.
Mar 18 2024, 8:08 AM
inka committed rCOMMcbe1a868fd6d: [keyserver] Remove deprectaed uses of updateTypes.UPDATE_CURRENT_USER (authored by inka).
[keyserver] Remove deprectaed uses of updateTypes.UPDATE_CURRENT_USER
Mar 18 2024, 8:08 AM
inka updated the diff for D11327: [keyserver] Remove deprectaed uses of updateTypes.UPDATE_CURRENT_USER.

Rebase

Mar 18 2024, 7:30 AM

Mar 15 2024

inka closed D11336: [native] Remove connection from persist black list.
Mar 15 2024, 6:57 AM
inka committed rCOMM8b2fda6bccd4: [native] Remove connection from persist black list (authored by inka).
[native] Remove connection from persist black list
Mar 15 2024, 6:57 AM
inka updated the diff for D11141: [IGNORE] Client hacks for testing multiple keyservers.

Rebase

Mar 15 2024, 3:00 AM
inka requested review of D11336: [native] Remove connection from persist black list.
Mar 15 2024, 2:51 AM
inka closed D11315: [lib] Refactor user reducers.
Mar 15 2024, 2:42 AM
inka committed rCOMM53224dfd79b5: [lib] Refactor user reducers (authored by inka).
[lib] Refactor user reducers
Mar 15 2024, 2:42 AM
inka closed D11313: [lib] Refactor fullStateSyncActionType in reducers.
Mar 15 2024, 2:42 AM
inka committed rCOMMb425f8ee17b1: [lib] Refactor fullStateSyncActionType in reducers (authored by inka).
[lib] Refactor fullStateSyncActionType in reducers
Mar 15 2024, 2:42 AM

Mar 14 2024

inka requested review of D11327: [keyserver] Remove deprectaed uses of updateTypes.UPDATE_CURRENT_USER.
Mar 14 2024, 6:29 AM
inka updated the diff for D11313: [lib] Refactor fullStateSyncActionType in reducers.

Fix broken legacy logins

Mar 14 2024, 3:32 AM
inka accepted D11316: [native] fix long keyserver names ui bug.
Mar 14 2024, 2:18 AM

Mar 13 2024

inka requested review of D11315: [lib] Refactor user reducers.
Mar 13 2024, 10:18 AM
inka added inline comments to D11313: [lib] Refactor fullStateSyncActionType in reducers.
Mar 13 2024, 9:23 AM
inka requested review of D11313: [lib] Refactor fullStateSyncActionType in reducers.
Mar 13 2024, 9:15 AM
inka closed D11310: [nix] Run set-up-authoritative-keyserver.sh on nix startup.
Mar 13 2024, 3:57 AM
inka closed D11282: [keyserver] Create json files with authoritative keyserver id.
Mar 13 2024, 3:57 AM
inka committed rCOMMda499ccaf125: [nix] Run set-up-authoritative-keyserver.sh on nix startup (authored by inka).
[nix] Run set-up-authoritative-keyserver.sh on nix startup
Mar 13 2024, 3:57 AM
inka closed D11268: [keyserver] Instruct to restart nix if login / register fails in the new flow.
Mar 13 2024, 3:57 AM
inka committed rCOMMfe6b73d91e9d: [keyserver] Instruct to restart nix if login / register fails in the new flow (authored by inka).
[keyserver] Instruct to restart nix if login / register fails in the new flow
Mar 13 2024, 3:57 AM
inka committed rCOMM8d0b522e8a50: [keyserver] Create json files with authoritative keyserver id (authored by inka).
[keyserver] Create json files with authoritative keyserver id
Mar 13 2024, 3:57 AM
inka closed D11267: [keyserver] Print warnings if usingIdentityCredentials not set.
Mar 13 2024, 3:57 AM
inka closed D11258: [scripts] Hide password.
Mar 13 2024, 3:57 AM
inka committed rCOMMd90a864ea669: [keyserver] Print warnings if usingIdentityCredentials not set (authored by inka).
[keyserver] Print warnings if usingIdentityCredentials not set
Mar 13 2024, 3:57 AM
inka committed rCOMM9f1938b9e6ea: [scripts] Hide password (authored by inka).
[scripts] Hide password
Mar 13 2024, 3:57 AM
inka closed D11246: [scripts] Add scrips for setting up a new authoritative keyserver.
Mar 13 2024, 3:57 AM
inka committed rCOMM239ee40c9665: [scripts] Add scrips for setting up a new authoritative keyserver (authored by inka).
[scripts] Add scrips for setting up a new authoritative keyserver
Mar 13 2024, 3:57 AM

Mar 12 2024

inka updated the diff for D11310: [nix] Run set-up-authoritative-keyserver.sh on nix startup.

If running inside buildkite or github actions - exit.
I tested that if both are empty, the sqript continues, and if one of them or both are not empty, the script exits

Mar 12 2024, 10:00 AM
inka updated the diff for D11267: [keyserver] Print warnings if usingIdentityCredentials not set.

Rename to getUserCredentials

Mar 12 2024, 9:42 AM
inka attached a referenced file: F1314852: image.png.
Mar 12 2024, 9:15 AM
inka updated the diff for D11246: [scripts] Add scrips for setting up a new authoritative keyserver.

Silence output

Mar 12 2024, 9:14 AM
inka updated the diff for D11310: [nix] Run set-up-authoritative-keyserver.sh on nix startup.

Add timeout

Mar 12 2024, 9:09 AM
inka planned changes to D11310: [nix] Run set-up-authoritative-keyserver.sh on nix startup.

emscripten hangs because it waits for user input

Mar 12 2024, 8:59 AM
inka requested review of D11310: [nix] Run set-up-authoritative-keyserver.sh on nix startup.
Mar 12 2024, 8:57 AM
inka updated the diff for D11268: [keyserver] Instruct to restart nix if login / register fails in the new flow.

Address review

Mar 12 2024, 7:55 AM
inka updated the diff for D11282: [keyserver] Create json files with authoritative keyserver id.

Make the code more readable

Mar 12 2024, 7:09 AM
inka updated the diff for D11268: [keyserver] Instruct to restart nix if login / register fails in the new flow.

Print instructions for nix only in dev mode

Mar 12 2024, 7:01 AM
inka added a comment to D11268: [keyserver] Instruct to restart nix if login / register fails in the new flow.

I created a task to update NODE_ENV usage: ENG-7195

Mar 12 2024, 6:28 AM
inka updated the diff for D11246: [scripts] Add scrips for setting up a new authoritative keyserver.

Address review

Mar 12 2024, 4:48 AM
inka accepted D11090: Update unread count storage from JS and NSE.

LGTM, although I am not familiar with our Objective-C/java code

Mar 12 2024, 4:22 AM

Mar 11 2024

inka added inline comments to D11246: [scripts] Add scrips for setting up a new authoritative keyserver.
Mar 11 2024, 9:23 AM
inka updated the diff for D11246: [scripts] Add scrips for setting up a new authoritative keyserver.

Don't create backup if db not present or empty

Mar 11 2024, 9:22 AM
inka closed D11283: [lib][web][native] Use real admin username or id when adding a ks.
Mar 11 2024, 8:32 AM
inka committed rCOMMa4f77daafee9: [lib][web][native] Use real admin username or id when adding a ks (authored by inka).
[lib][web][native] Use real admin username or id when adding a ks
Mar 11 2024, 8:32 AM
inka updated the diff for D11141: [IGNORE] Client hacks for testing multiple keyservers.

Rebase over D11283

Mar 11 2024, 8:29 AM
inka added a comment to D11283: [lib][web][native] Use real admin username or id when adding a ks.

Code LGTM, in ENG-6298 you mentioned,

The only hack is that if we don't have the user in our user store, we display a fake username. But the id is correct.

Probably would be good to create a followup task to address this new hack

Mar 11 2024, 8:27 AM
inka added inline comments to D11285: [keyserver] make force login configurable.
Mar 11 2024, 8:24 AM
inka updated the diff for D11282: [keyserver] Create json files with authoritative keyserver id.

Address review

Mar 11 2024, 5:51 AM
inka added inline comments to D11282: [keyserver] Create json files with authoritative keyserver id.
Mar 11 2024, 5:51 AM
inka added a comment to D11268: [keyserver] Instruct to restart nix if login / register fails in the new flow.

But docker keyserver prints undefined as the value of process.env.NODE_ENV

Hmm... we shouild probably should avoid this ambiguous situation, and make sure we always specify NODE_ENV in the Docker environment. Can you create a task?

Would checking process.env.NODE_ENV !== 'production' make sense? Is the real production keyserver set up to have process.env.NODE_ENV == 'production'?

It doesn't look like I have anything specified in the .env file. If you're correct that the default keyserver is to have undefined, then I'm guessing my keyserver in production also has undefined. If it's helpful, I can do some additional testing on this.

Mar 11 2024, 3:23 AM
inka updated the diff for D11267: [keyserver] Print warnings if usingIdentityCredentials not set.

Address review

Mar 11 2024, 2:48 AM

Mar 8 2024

inka added inline comments to D11246: [scripts] Add scrips for setting up a new authoritative keyserver.
Mar 8 2024, 9:08 AM
inka updated the diff for D11268: [keyserver] Instruct to restart nix if login / register fails in the new flow.

Address revie

Mar 8 2024, 9:05 AM
inka added a comment to D11268: [keyserver] Instruct to restart nix if login / register fails in the new flow.

Should we only print this log in dev mode?

Mar 8 2024, 9:03 AM
inka updated the diff for D11141: [IGNORE] Client hacks for testing multiple keyservers.

Use the real user id on native as well

Mar 8 2024, 7:09 AM
inka requested review of D11283: [lib][web][native] Use real admin username or id when adding a ks.
Mar 8 2024, 4:23 AM
inka requested review of D11282: [keyserver] Create json files with authoritative keyserver id.
Mar 8 2024, 3:14 AM
inka updated the diff for D11141: [IGNORE] Client hacks for testing multiple keyservers.

Rebase

Mar 8 2024, 2:57 AM
inka accepted D11271: [lib] Don't sync users with non-authoritative keyservers.

This is quite hacky, but I guess it's fine since it's temporary

Mar 8 2024, 1:39 AM
inka accepted D11270: [lib] Disable edit button when link secret isn't changed.
Mar 8 2024, 1:24 AM

Mar 7 2024

inka added inline comments to D11234: Implement notifications sessions storage on top of MMKV. Migrate existing notifs account to SQLite.
Mar 7 2024, 8:24 AM
inka requested review of D11268: [keyserver] Instruct to restart nix if login / register fails in the new flow.
Mar 7 2024, 4:03 AM
inka updated the diff for D11267: [keyserver] Print warnings if usingIdentityCredentials not set.

Update text

Mar 7 2024, 3:44 AM
inka requested review of D11267: [keyserver] Print warnings if usingIdentityCredentials not set.
Mar 7 2024, 3:37 AM
inka closed D11238: [lib] Set CSAT on identity login / register.
Mar 7 2024, 12:43 AM
inka committed rCOMM220e66c5898b: [lib] Set CSAT on identity login / register (authored by inka).
[lib] Set CSAT on identity login / register
Mar 7 2024, 12:43 AM
inka accepted D11264: [lib] Extract invalidateKeyserverSession in useKeyserverRecoveryLogIn.
Mar 7 2024, 12:37 AM
inka added inline comments to D11265: [lib] Log out when invalidating session with authoritative keyserver in useKeyserverRecoveryLogIn.
Mar 7 2024, 12:36 AM
inka added a comment to D11259: [lib] Create a redux store where ops will be stored.

Can you explain why we don't want to persist ops? Wouldn't it be a problem if redux store got updated, but the app was closed before ops had the time to update the db?

Mar 7 2024, 12:17 AM
inka added inline comments to D11090: Update unread count storage from JS and NSE.
Mar 7 2024, 12:02 AM

Mar 6 2024

inka requested review of D11258: [scripts] Hide password.
Mar 6 2024, 6:57 AM
inka updated the diff for D11238: [lib] Set CSAT on identity login / register.

Use an export list

Mar 6 2024, 5:11 AM
inka updated the diff for D11246: [scripts] Add scrips for setting up a new authoritative keyserver.

Address review

Mar 6 2024, 3:28 AM
inka added inline comments to D11246: [scripts] Add scrips for setting up a new authoritative keyserver.
Mar 6 2024, 3:27 AM

Mar 5 2024

inka requested review of D11246: [scripts] Add scrips for setting up a new authoritative keyserver.
Mar 5 2024, 10:04 AM
inka accepted D11229: [lib][web] Update condition for Redux state reset in SET_NEW_SESSION reducers.

Unify around cookieInvalidated. I'm open to another approach, so @inka feel free to let me know if I should go the other way

Mar 5 2024, 5:25 AM
inka added inline comments to D11238: [lib] Set CSAT on identity login / register.
Mar 5 2024, 1:08 AM

Mar 4 2024

inka requested review of D11238: [lib] Set CSAT on identity login / register.
Mar 4 2024, 9:33 AM
inka added a comment to D11229: [lib][web] Update condition for Redux state reset in SET_NEW_SESSION reducers.

Separately, something I'm wondering about... in some cases we check action.payload.sessionChange.cookieInvalidated, and in others we check action.payload.sessionChange.currentUserInfo?.anonymous. Is there any difference in these checks? Should we unify them? Wanted to ask @inka as they have touched this code recently and probably made the same observation.

Mar 4 2024, 8:08 AM

Feb 23 2024

inka accepted D11144: [lib] Move actualizedCalendarQuery into keyserver store.
Feb 23 2024, 7:46 AM
inka closed D11157: [native] Fix hermes throwing on nonexistant files.
Feb 23 2024, 7:38 AM
inka committed rCOMM3f492de73aac: [native] Fix hermes throwing on nonexistant files (authored by inka).
[native] Fix hermes throwing on nonexistant files
Feb 23 2024, 7:38 AM