-
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
[HOLD for payment 2023-06-01] [$1000] Invalid prop type console errors show in money request page #19181
Comments
Triggered auto assignment to @greg-schroeder ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01c1b26430e873c12c |
Current assignee @greg-schroeder is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Current assignee @Julesssss is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.-Invalid prop type console errors show on the money request page What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
// SettlementButton.js (warning -1)
-nvp_lastPaymentMethod: PropTypes.objectOf(PropTypes.string), //
+nvp_lastPaymentMethod: PropTypes.arrayOf(PropTypes.string),
// ButtonWithDropdownMenu.js (warning - 2 , 3)
<Button
- ref={caretButton}
+ ref={(el) => (caretButton.current = el)}
without fix![]() with fix![]() cc @Julesssss |
Checking... |
@dhairyasenjaliya There are 3 warnings. |
![]() |
@parasharrajat I think I found the 2nd culprit we are not setting // ButtonWithDropdownMenu.js
<Button
- ref={caretButton}
+ ref={(el) => (caretButton.current = el)}
success
|
Please update your proposal and let me know when it is ready to review. |
@parasharrajat here's the updated proposal with screenshot #19181 (comment) |
ProposalPlease re-state the problem that we are trying to solve in this issue.We have some console errors when we open an expense report with Pay with Expensify button. What is the root cause of that problem?The first one is the wrong type of The second one is the wrong type of App/src/components/Button/index.js Lines 113 to 114 in b517382
However, the I tried to find the type of the component by log What changes do you think we should make in order to solve the problem?Re-login for the first issue. For the second one, most of the solution I found recommend to change it to we need to do the changes in these 3 components withNavigationFallback, withNavigationFocus, and Button |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
I loved the attention to detail in @bernhardoj's proposal. It seems that type for I agree we should change the type of otherwise we can figure this out in the PR. @bernhardoj 's proposal looks good to me. This is not a major issue but +1 to @bernhardoj to correctly assess the problem. cc: @Julesssss 🎀 👀 🎀 C+ reviewed |
Thanks Rajat, I agree with your review. Let's figure it out in the PR. |
📣 @bernhardoj You have been assigned to this job by @Julesssss! |
PR awaiting @parasharrajat's final review |
Review Done. |
🎯 ⚡️ Woah @parasharrajat / @bernhardoj, great job pushing this forwards! ⚡️ The pull request got merged within 2 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.17-5 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 2023-06-01. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
Offers sent to @aimane-chnaif, @bernhardoj, @parasharrajat in preparation for tomorrow's payment date, 6/1 Bonus: YES |
Looks like we don't have any regressions - next up is @parasharrajat on the checklist! (also I'll get you paid as soon as you except the job offer in UW 👍) |
[@parasharrajat] The PR that introduced the bug has been identified. Link to the PR: NA, it's a console error only. [@parasharrajat] 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: NA [@parasharrajat] 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: NA [@parasharrajat] Determine if we should create a regression test for this bug. NA [@parasharrajat] 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. None |
Okay then. Please accept the offer whenever you're able Rajat and I'll complete the payment - everyone else is paid out and checklist done, no regression test. |
@greg-schroeder Accepted |
paid |
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: No console errors show
Actual Result: Console errors show
Platforms: All
Version Number: v1.3.16-2
Issue reported by: @aimane-chnaif
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684401039074339
Screen.Recording.2023-05-18.at.10.12.09.AM.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: