-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix - User is able to disable 2FA when connected to Xero accounting #53948
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 |
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.
Lets get this merged 🚀
@@ -1357,6 +1357,8 @@ const translations = { | |||
twoFactorAuthIsRequiredDescription: 'Por razones de seguridad, Xero requiere la autenticación de dos factores para conectar la integración.', | |||
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.', |
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.
These translations were confirmed here
🎯 @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 |
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.
approving for the tests to pass
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.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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