-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Awaiting Payment][$1000] Web - The error doesn't clear immediately after reloading the contact method verify page #23813
Comments
Triggered auto assignment to @garrettmknight ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The error doesn't clear immediately after reloading the contact method verify page. What is the root cause of that problem?The error message is stored in
But when reloading the contact method verify page, these onyx data does not clear.Therefore after reloading the page, the error is still shown. What changes do you think we should make in order to solve the problem?We should clear error message data in function clearContactMethodErrors(contactMethod, fieldName) {
if (fieldName === '') {
Onyx.merge(ONYXKEYS.LOGIN_LIST, {
[contactMethod]: {
errorFields: {
validateLogin: null,
addedLogin: null,
deletedLogin: null,
defaultLogin: null,
},
pendingFields: {
validateLogin: null,
addedLogin: null,
deletedLogin: null,
defaultLogin: null,
},
},
});
return;
}
...
} componentDidMount() {
+ User.clearContactMethodErrors(this.getContactMethod(), '');
User.resetContactMethodValidateCodeSentState(this.getContactMethod());
} What alternative solutions did you explore? (Optional)None. |
Confirmed error on staging |
Job added to Upwork: https://www.upwork.com/jobs/~0140f90e5805b83227 |
Current assignee @garrettmknight is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Thanks for the proposal @StevenKKC. I get that the proposal works, and the RCA is also correct. But I am going to have to confirm if we're okay to clear these messages. @johnmlee101 I can see we're storing all the error messages in Onyx and not clearing, is there any reason we would want to retain after refresh? 🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @johnmlee101, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Hello, everyone! Janitha! |
📣 @DreamSoft0888! 📣
|
Contributor details |
ProposalPlease re-state the problem that we are trying to solve in this issue.The error doesn't clear immediately after reloading the contact method verify page What is the root cause of that problem?We don't clear the After some seconds What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@mananjadhav The RCA of the solution above does not show why it is cleared after a few seconds
We shouldn't clear other errors because these errors need to display when we add a contact method or delete a contact method fails. We should only remove |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
🎯 ⚡️ Woah @mananjadhav / @WikusKriek, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
This was deployed on production 2 days, but the title wasn't updated. |
@garrettmknight This is in production for 7 days, and ready for payout now. Can you post the payout summary here? |
Oops, yep, let me process now. |
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:
|
Summary of payments for this issue:
Upwork job: https://www.upwork.com/jobs/~0140f90e5805b83227 |
$1,500 payment approved via NewDot based on BZ summary. |
@JmillsExpensify @garrettmknight We're good to close this one? |
@mananjadhav can you complete the checklist? |
I can't attribute this to a specific offending PR. We are not clearing the code is something that we have had since |
Thanks, we can close now. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The error should clear immediately after reloading the page
Actual Result:
The error doesn't clear immediately
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.47-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screencast.from.28-07-2023.18_05_23.webm
Recording.3981.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dukenv0307
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690542294914639
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: