-
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
[HOLD for payment 2023-02-15] [$1000] Settings - Changed name is not saved under Display name page #14784
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Issue is not reproduced in Production Recording.1976.mp4 |
I can repeat this in staging on
|
Job added to Upwork: https://www.upwork.com/jobs/~01bc1f33f46287e85e |
Current assignee @Christinadobrzyn is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Triggered auto assignment to @techievivek ( |
Reading over our documentation, I don't know if external contributors can fix deploy blockers? @techievivek so you know? Asking the team here |
This is not limited to Profile Page Display Name only. I can reproduce the same issue on Workspace> General Settings> Name. It is not limited to TextInput only. I can reproduce the same issue on |
ProposalProblemAs @sobitneupane mentioned above, the root cause is In https://github.com/tienifr/App/blob/8f754df0ddea4249eb5d1f94ea6642a8a797d08c/src/components/Form.js#L239 Solution 1 this.state = {
errors: {},
- inputValues: props.draftValues,
+ inputValues: {
+ ...props.draftValues
+ },
}; Solution 2I use lodashCloneDeep to clone the new draft object. That can make sure props.draftValues can't be change unexpectedly ...
+import lodashCloneDeep from 'lodash/cloneDeep';
...
this.state = {
errors: {},
- inputValues: props.draftValues,
+ inputValues: lodashCloneDeep(props.draftValues)
}; ResultScreen.Recording.2023-02-03.at.15.10.51.mov |
What should be the next steps? @techievivek @sobitneupane @Christinadobrzyn |
@rushatgabhane normally the next steps would be for the PR author (@tienifr ) to fix the regression, but it looks like there's some other proposals on the linked issue? I don't see any "approved / accepted" proposals though |
Can we ask @tienifr to look into the regression and fix it before we go with any new proposals? |
Makes sense to me! |
@Beamanator @techievivek Thank for your feedback, but In App/src/pages/ReimbursementAccount/BankAccountManualStep.js Lines 114 to 132 in 14ebe26
we use two different names: acceptedTerms for inputID but we get acceptTerms from defaultStateSo my suggestion is to change this line
to
My result after applying this change: Screen.Recording.2023-02-10.at.15.14.17.mov |
But I'm not sure this problem comes from my PR, or we should create other issue for this? Thanks. |
@rushatgabhane huh if the problem is that the |
@Beamanator that's not the problem. I have posted an explanation in the other issue. #14972 (comment) @tienifr |
I think the problem here is so simple and my PR doesn't cause the regression. We should keep the preceded PR #13501 because it's complex implementation and works well. This is normal if there're some minor issues when we release the new feature. So I pushed the proposal here: #14972 (comment). |
@Beamanator yeah my bad 😅 |
Okkkkk great good to know, thanks for the investigation @rushatgabhane ! No trouble at all 🙏 |
@rushatgabhane looks like you will continue reviewing proposals for the other issue (#14972) over there so I believe this PR can be payed out, right? (in 2 days, i guess) |
No, we should not continue using incorrect patterns just to avoid a bug. In #13501, consistency should have been maintained by using the proper pattern. Instead of passing In other components, this is the pattern that we use to retrieve the App/src/pages/ReimbursementAccount/ReimbursementAccountPage.js Lines 393 to 395 in 6fcad7b
|
Hi! Just checking on this, @techievivek @Beamanator @fedirjh @tienifr are we waiting on #14972 before issuing payment on this job? |
My understanding is that the other issue (#14972) is unrelated to the fix in this issue. The fix in this issue (#14866) was merely fixing a bug from #13501, so if anything the regression #14972 would have been caused by #13501 So my understanding is we are good to pay this one out, but @rushatgabhane and @fedirjh should continue discussing and investigating a solid fix for #14972 in that issue - I like the discussion, but I don't think it belongs here anymore as this fix was very small, and it tests well. |
@Beamanator Hi, can you confirm if @sobitneupane would receive a 50% bonus as the PR was merged within 3 business days? |
Yes, my understanding is the Contributor and C+ both get the bonus if the PR is merged within 3 days.
I think we just need to finalise this BuzZero checklist |
Makes sense to me @Christinadobrzyn and @techievivek 👍 |
yes yes |
@sobitneupane @tienifr can you please complete this checklist so we can close this out? |
https://github.com/Expensify/App/pull/13501/files#r1111477927
https://expensify.slack.com/archives/C049HHMV9SM/p1676872397051299 |
@Christinadobrzyn if you mean the regression test step, it was already added here #14784 (comment) |
Ah thank you @tienifr I missed that. Proposed Regression Test here - https://expensify.slack.com/archives/C01SKUP7QR0/p1676967958834629 @tienifr Should the below Regression Test steps be part of this GH instead?
|
I think this can be closed so I'm going to close it but let me know if it needs to remain open for anything |
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:
Changed name is saved under Display name page
Actual Result:
Changed name is not saved under Display name page.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.64.3
Reproducible in staging?: Yes
Reproducible in production?: No
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
Bug5922983_Recording__1974.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team & @priya-zha per #14773 (comment)
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1675348988953739
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: