-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#21930] Keycard - Back up keycard #21990
[#21930] Keycard - Back up keycard #21990
Conversation
Jenkins BuildsClick to see older builds (13)
|
71657f6
to
b81fbef
Compare
thank you @Parveshdhull |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
good catch @VolodLytvynenko , thanks, fixed |
9ad3436
to
c09a0d6
Compare
90% of end-end tests have passed
Failed tests (5)Click to expandClass TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMerged:
Class TestFallbackMultipleDevice:
Expected to fail tests (1)Click to expandClass TestCommunityMultipleDeviceMerged:
Passed tests (52)Click to expandClass TestActivityMultipleDevicePRTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestDeepLinksOneDevice:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestFallbackMultipleDevice:
Class TestWalletOneDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestWalletMultipleDevice:
|
100% of end-end tests have passed
Passed tests (10)Click to expandClass TestWalletMultipleDevice:
Class TestWalletOneDevice:
Class TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityOneDeviceMerged:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @flexsurfer. I did a quick review, no outstanding feedback on my part. PR LGTM, just left two comments. My comment about not calling rf/dispatch
directly inside the event handler is the only one I think should be addressed.
(fn [{:keys [db]} [pin]] | ||
{:db (assoc-in db [:keycard :backup :pin] pin)})) | ||
|
||
(defn- save-pin-and-navigate-to-phrase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A pattern I see in this namespace is that some functions could be actual events. For instance, the :on-success
of :keycard/verify-pin
could dispatch a new event, let's say named :keycard/save-pin-and-navigate-to-phrase
. The small advantage is that you would then be able to use :fx
to dispatch all effects instead of a series of imperative rf/dispatch
calls, which is more friendly with the re-frame queue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks Icaro, i don't really think there is a difference in re-frame queue, but i really don't like using dispatch inside events, especially when there are only dispatches in the event
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah @flexsurfer, the difference for the queue is certainly quite minimal to non-existent. Re-dispatching from event handlers like :on-success
is helpful sometimes for devs using the REPL because they can easily re-run and debug the success handler directly and there's a bit more visibility in re-frisk. Both of these advantages are also quite small, but it's worth pointing out.
Hi @flexsurfer, Thank you for the fixes! Issue 1 is resolved. I haven’t finished testing yet, as this PR requires some time to cover all flows. Many flows are already completed, and I will finish the rest tomorrow. Just let you know the PR is in test process and everything look ok for now |
thanks @VolodLytvynenko , i forgot to mention, i haven't implemented |
@flexsurfer Sorry for the testing delay. I had to switch to another PR again. No issues from my side—this PR is ready to be merged. |
hi @flexsurfer Created it as a follow up #22013 |
fixes: #21930
All flows have been implemented
Also Manage card in setting has been implemented
![image](https://private-user-images.githubusercontent.com/11790366/407338617-00e501eb-9b2b-41ce-8fd9-9beb3b26be65.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MTI3MDIsIm5iZiI6MTczODgxMjQwMiwicGF0aCI6Ii8xMTc5MDM2Ni80MDczMzg2MTctMDBlNTAxZWItOWIyYi00MWNlLThmZDktOWJlYjNiMjZiZTY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDAzMjY0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJiNzBjYzlhODBlMTA2N2VhYWJhZTc5NTIzNDNlOGJhMThhNjMxOWQ5MjFiYzQ0ZWEzZDM4ZmVhMzc4Y2ZmYjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.T0wSp-YRIHeIXVurZM4PXfMx3giyYgxw6zJa6VxM0Yk)