You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-10-25] Contact method - unlinkLoginForm.succesfullyUnlinkedLogin after unlinking secondary login #50256
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.0.44-7 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers):applausetester+kh021001@applause.expensifail.com Issue reported by: Applause - Internal Team
Action Performed:
Go to staging.new.expensify.com
Go to Account settings > Profile > Contact method
Click New contact method
Add a secondary email and enter magic code, but do not verify it
Log in as the secondary email
Click Unlink
Open email with subject "Unlink secondary Expensify login"
Click on the link "the validation link here"
Expected Result:
App will show the correct successful unlink message
Actual Result:
App shows unlinkLoginForm.succesfullyUnlinkedLogin after unlinking secondary login
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceBug6624569_1728055712579.20241004_232118.mp4
@trjExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
What changes do you think we should make in order to solve the problem?
Pass a message prop to unlinkLogin and set it as message of successData, the message can be formed in UnlinkLoginPagehere and then sent to the function.
We should use the translate method wherever we are using these variables. This will address the issue at its core. Additionally, we have a reviewer checklist item emphasizing the importance of using the translate method with variables.
I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the [translation method](https://github.com/Expensify/App/blob/4bd99402cebdf4d7394e0d1f260879ea238197eb/src/components/withLocalize.js#L60)
What alternative solutions did you explore? (Optional)
Or we can also use Localize.translateLocal in Session/index.ts file and translate in UnlinkLoginForm.tsx file
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.50-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@rojiphil] The PR that introduced the bug has been identified. Link to the PR:
[@rojiphil] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@rojiphil] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@rojiphil] Determine if we should create a regression test for this bug.
[@rojiphil] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@trjExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
[@rojiphil] The PR that introduced the bug has been identified. Link to the PR: Offending PR
[@rojiphil] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: Added comment
[@rojiphil] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: Not Required. Existing checklist is good enough to capture such issues.
[@rojiphil] Determine if we should create a regression test for this bug. : Yes. We can
[@rojiphil] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Steps:
Go to Settings->Profile and add a secondary email.
Login with secondary email and click on Unlink
Open Unlink Validation link email and click on the link
Verify that the unlink success message is displayed.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Oct 4, 2024
Triggered auto assignment to @trjExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon Oct 4, 2024
@trjExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
twilight2294 commentedon Oct 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
unlinkLoginForm.succesfullyUnlinkedLogin after unlinking secondary login
What is the root cause of that problem?
We are pasting
unlinkLoginForm.succesfullyUnlinkedLoginin the success data here:App/src/libs/actions/Session/index.ts
Lines 890 to 897 in 4e12268
Then in the
UnlinkLoginFormbelow, we checkWhat changes do you think we should make in order to solve the problem?
Pass a
messageprop tounlinkLoginand set it as message ofsuccessData, the message can be formed inUnlinkLoginPagehere and then sent to the function.We would also ned to update the message below:
App/src/pages/signin/UnlinkLoginForm.tsx
Line 35 in 4e12268
If there is same bug with
unlinkLoginForm.linkSentwe need to fix that too, also need to check if anyBEchanges are neededImplementation:
UnlinkLoginPage, we need to create a new const as UnlinkLoginMessage:unlinkLoginfunction, we would update it to:What alternative solutions did you explore? (Optional)
Nodebrute commentedon Oct 4, 2024
Edited by proposal-police: This proposal was edited at 2024-10-04 17:49:43 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
unlinkLoginForm.succesfullyUnlinkedLogin after unlinking secondary login
What is the root cause of that problem?
We are passing this as a string
'unlinkLoginForm.succesfullyUnlinkedLogin'and we are not usingtranslatehereApp/src/libs/actions/Session/index.ts
Line 896 in 896bc78
What changes do you think we should make in order to solve the problem?
let's use translate here
translate('unlinkLoginForm.succesfullyUnlinkedLogin')App/src/libs/actions/Session/index.ts
Line 896 in 896bc78
Let's fix these two value too
translate('unlinkLoginForm.linkSent')andtranslate('unlinkLoginForm.succesfullyUnlinkedLogin')App/src/pages/signin/UnlinkLoginForm.tsx
Line 35 in 896bc78
We should look for other places too where we are not using translate and fix the issue
Some other places where we should fix this
App/src/libs/actions/Session/index.ts
Line 307 in 896bc78
App/src/libs/actions/Session/index.ts
Line 858 in 896bc78
Note
We should use the translate method wherever we are using these variables. This will address the issue at its core. Additionally, we have a reviewer checklist item emphasizing the importance of using the translate method with variables.
What alternative solutions did you explore? (Optional)
Or we can also use
Localize.translateLocalinSession/index.tsfile andtranslateinUnlinkLoginForm.tsxfileNodebrute commentedon Oct 4, 2024
Proposal Updated
Added another place where the fix is needed
Nodebrute commentedon Oct 4, 2024
Updated Proposal
Added Alternate solution
melvin-bot commentedon Oct 4, 2024
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.
melvin-bot commentedon Oct 4, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (
External)38 remaining items
melvin-bot commentedon Oct 18, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.50-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-10-25. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 18, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
rojiphil commentedon Oct 24, 2024
Steps:
UnlinkUnlink Validationlink email and click on thelinkrojiphil commentedon Oct 24, 2024
@trjExpensify BZ Checklist is done
melvin-bot commentedon Oct 25, 2024
Payment Summary
Upwork Job
BugZero Checklist (@puneetlath)
trjExpensify commentedon Oct 25, 2024
Great, thanks! Payment summary as follows:
@rojiphil sent you an offer. @bernhardoj, go ahead and request.
rojiphil commentedon Oct 25, 2024
Thanks @trjExpensify. Accepted offer.
trjExpensify commentedon Oct 25, 2024
Perfect, paid!
bernhardoj commentedon Oct 26, 2024
Requested in ND.
JmillsExpensify commentedon Oct 28, 2024
$250 approved for @bernhardoj