Fix - User is able to disable 2FA when connected to Xero accounting#53948
Conversation
|
@allgandalf Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@allgandalf and @neil-marcellini I want to mention that this treatment of determining if there is a workspace with xero connection from FE does have an uncovered edge case where when the user has just signed in and the necessary workspace data is not available in onyx we can't determine if there are xero connections. From my observation the 2024-12-11.18-10-19.mp4 |
|
umm, @neil-marcellini either ways i don't think so that should block our FE PR, do you agree ? |
|
waiting for a reply.,.. |
|
bump @neil-marcellini |
|
@neil-marcellini is OoO this week, we should hear back next week, i will still complete the checklist in the meantime |
|
bumped @neil-marcellini 1:1 so we should expect a reply soon |
Yes that's a good point. I think we should update the backend for disabling 2FA so that it checks if there are any policy connections, and if so returns a helpful error message. I will remove the $ in front of the linked issue so it stays open, and I'll handle that part internally. We can still go ahead with this frontend fix. |
|
@FitseTLT please merge main |
Done @allgandalf |
This reverts commit 079e0b7.
|
@allgandalf Updated |
This comment was marked as outdated.
This comment was marked as outdated.
|
@allgandalf you are going back to the start I had already informed that here that it needs a BE change. |
AHh, i almost forgot that one, thanks ! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-01-29.at.6.44.46.PM.movAndroid: mWeb ChromeScreen.Recording.2025-01-29.at.6.48.15.PM.moviOS: NativeScreen.Recording.2025-01-29.at.6.28.27.PM.moviOS: mWeb SafariScreen.Recording.2025-01-29.at.6.29.53.PM.movMacOS: Chrome / SafariScreen.Recording.2025-01-29.at.6.24.50.PM.movMacOS: DesktopScreen.Recording.2025-01-29.at.6.23.24.PM.mov |
|
@FitseTLT Please update testing steps to: Precondition:
Test:
Verify that: A blocking modal is shown stating |
|
Updated |
|
@FitseTLT you cannot test this in offline mode, we get a blocking modal, so please also update the offline test to state that we cannot do this in offline mode:
|
|
done |
allgandalf
left a comment
There was a problem hiding this comment.
Lets get this merged 🚀
| twoFactorAuthIsRequiredForAdminsDescription: | ||
| 'La autenticación de dos factores es necesaria para los administradores del área de trabajo de Xero. Activa la autenticación de dos factores para continuar.', | ||
| twoFactorAuthCannotDisable: 'No se puede desactivar la autenticación de dos factores (2FA)', | ||
| twoFactorAuthRequired: 'La autenticación de dos factores (2FA) es obligatoria para tu conexión a Xero y no se puede desactivar.', |
|
🎯 @allgandalf, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #55954. |
@neil-marcellini , whats the status on the |
allgandalf
left a comment
There was a problem hiding this comment.
approving for the tests to pass
neil-marcellini
left a comment
There was a problem hiding this comment.
Great work thanks! Yes I'll add the backend check to fix that edge case after this.
@neil-marcellini the reason the modal is not shown on first sign in is because |
We generally don't want to add any extra data to the OpenApp call because it's already too slow in many cases and it's critical that we work to keep it performant. I think we can make the same modal open after the backend returns an error. I might implement that frontend behavior myself along side the backend work so it's easy for me to test. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.0.92-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.92-6 🚀
|


Details
Fixed Issues
#52850
PROPOSAL: #52850 (comment)
Tests
Precondition:
Test:
Offline tests
Cannot be tested
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
2024-12-11.18-29-34.mp4
Android: mWeb Chrome
2024-12-11.17-46-36.mp4
iOS: Native
i.mp4
iOS: mWeb Safari
iw.mp4
MacOS: Chrome / Safari
w.mp4
MacOS: Desktop
d.mp4