-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-07-28] [$1000] Dev: IOS - Getting console warning on the Payments page when pressing Add payment method button #21953
Comments
Triggered auto assignment to @muttmuure ( |
Bug0 Triage Checklist (Main S/O)
|
Proposalfrom: @jayeshmangwani Please re-state the problem that we are trying to solve in this issue.Getting console warning on the Payments page when pressing Add payment method button What is the root cause of that problem?The issue is happening because, on BasePaymentsPage, we pass the
What changes do you think we should make in order to solve the problem?On the getClickedTargetLocation function, we should return the x and y too, On mobile devices we use the bottom-docked modal so we actually don't need the anchorPosition so here we should add the x and y values to 0 as, horizontal and vertical values expecting a number App/src/libs/getClickedTargetLocation/index.native.js Lines 7 to 10 in df91473
return {
bottom: 0,
left: 0,
x: 0,
y: 0,
}; And on top of that, we should add missing values What alternative solutions did you explore? (Optional)We should pass the anchorPosition value conditionally when there is no Small screen device, then pass the anchorPosition App/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js Lines 416 to 424 in f9acca9
{...(!this.props.isSmallScreenWidth ? {anchorPosition} : {})} |
ProposalPlease re-state the problem that we are trying to solve in this issue.Getting console warning on the Payments page when pressing Add payment method button What is the root cause of that problem?The issue is happening because, on BasePaymentsPage, we pass the
What changes do you think we should make in order to solve the problem?On the getClickedTargetLocation function, we should return the x and y too, On mobile devices we use the bottom-docked modal so we actually don't need the anchorPosition so here we should add the x and y values to 0 as, horizontal and vertical values expecting a number App/src/libs/getClickedTargetLocation/index.native.js Lines 7 to 10 in df91473
return {
bottom: 0,
left: 0,
x: 0,
y: 0,
}; And on top of that, we should add missing values What alternative solutions did you explore? (Optional)We should pass the anchorPosition value conditionally when there is no Small screen device, then pass the anchorPosition App/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js Lines 416 to 424 in f9acca9
{...(!this.props.isSmallScreenWidth ? {anchorPosition} : {})} |
https://expensify.slack.com/archives/C01GTK53T8Q/p1688406242558149 Not sure we're supposed to fix bugs on dev |
Asking what I need to do if something is a deploy blocker |
@muttmuure This issue is not the deploy blocker. Above is the console warning, and this console warning issue does not happen on staging or production, and this warning is displayed when run from the local main branch. Few GH issues, example for, console warnings/errors #22206, #22169, #21840 |
So is the answer to these questions: no Reproducible in staging?: n/a ? |
For #22206 issue, we have added |
Not sure how I can reproduce this, so I've asked about getting console logs for iOS here: https://expensify.slack.com/archives/C01SKUP7QR0/p1689246208691599 |
Don't think you'll be able to. We should get an internal engineer to verify |
Triggered auto assignment to @stitesExpensify ( |
Adding engineering to ask if they can reproduce. |
Just kidding that's actually a different error 😅 |
Job added to Upwork: https://www.upwork.com/jobs/~0151ff298169cff532 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.43-7 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-07-28. 🎊 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.
For reference, here are some details about the assignees on this issue:
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:
|
@jayeshmangwani paid urgency bonus and reporting bonus @0xmiroslav invited to apply to job on Upwork |
@muttmuure Sorry, can you please hold my payment until further notice? I am working on some stuff due to recent measurements in my region. And update issue to Monthly. Thanks |
@jayeshmangwani, @stitesExpensify, @muttmuure, @0xmiroslav Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Holding payment |
@jayeshmangwani, @stitesExpensify, @muttmuure, @0xmiroslav Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@0xmiroslav any update? Or are we still holding your payment? |
still holding my payment. will update here when ready |
Not overdue |
@0xmiroslav what's the status here? |
Please close this one. I am tracking myself. Thanks |
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:
Should not show any console warnings
Actual Result:
Getting Console Warnings (The prop
anchorPosition.horizontal
is marked as required inPopoverMenu,
but its value isundefined
)Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: iOS (Dev)
Reproducible in staging?: n/a
Reproducible in production?: n/a
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
console-bug-ios-anchorPosition.horizontal.mov
Expensify/Expensify Issue URL:
Issue reported by: @jayeshmangwani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688037417930409
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: