-
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-09-21] [$500] Dev: Web - Console error on request money thread #26092
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.should not show any console error What is the root cause of that problem?We are passing the App/src/components/ReportActionItem/MoneyRequestView.js Lines 98 to 100 in c029dc5
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)N/A |
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Console error for opening a report of money request view What is the root cause of that problem?It persists after this PR merged where the image source is passed as a string which should be the either number or object. App/src/components/Image/imagePropTypes.js Lines 10 to 17 in 7b5fadf
What changes do you think we should make in order to solve the problem?We need to pass it as an object by setting its
|
ProposalPlease re-state the problem that we are trying to solve in this issueDEV: console error on request money thread What is the root cause of that problem?This is due to difference in Image Resolver for web and native devices. RNWeb also accepts string as a source What changes do you think we should make in order to solve the problem?Add platform dependent types for source (example below, not exact) const sourceType = Platform.select({
web: [
PropTypes.number,
PropTypes.shape({
uri: PropTypes.string.isRequired,
// eslint-disable-next-line react/forbid-prop-types
headers: PropTypes.object,
}),
PropTypes.string,
],
default: [
PropTypes.number,
PropTypes.shape({
uri: PropTypes.string.isRequired,
// eslint-disable-next-line react/forbid-prop-types
headers: PropTypes.object,
}),
],
}); What alternative solutions did you explore? (Optional) |
Reproducible, triaging to external |
Job added to Upwork: https://www.upwork.com/jobs/~01157770cac8c77081 |
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
I see. let's fix all instances of this issue in the codebase. Note: As this issue is a quick one, the root cause was obvious. But please be sure to properly explain your root cause and solution. Always, remember you are talking to a person through comment. |
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@parasharrajat There's a slight problem with the approach approved by you. See this in the iOS native. Can you please re-review the proposal? |
@shubham1206agra Can you explain the problem? |
The problem is that native and web uses different resolvers for image source resolution So your selected solution will cause prop error but now on native |
Thanks for pointing that out @shubham1206agra. |
@parasharrajat Can you review the proposal again in this case, please? |
So I looked further into the problem and I think that there could be two easy solutions.
1st has a drawback of caching so the second seems fine. @shubham1206agra's proposal seems to be the first which does not cause any errors. Taking back my previous decision. 🎀 👀 🎀 C+ reviewed |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.69-2 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-09-21. 🎊 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:
|
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:
|
@parasharrajat are we writing a regression test for this? |
Payments @parasharrajat review + bonus = $750 - please request in NewDot |
@sonialiap offer accepted. i think reporting bonus should be $250 because it was logged before 30 Aug (before announcement) |
@gadhiyamanan agreed, thanks for pointing out that Melvin miscounted. I'm correcting that to $250 for the reporting |
@parasharrajat bump on the regression test question (are we writing one for this issue?) |
@sonialiap I don't think regression tests are needed for this issue. It was just a console warning. |
@sonialiap, @parasharrajat, @thienlnam, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Agreed - seems like we're just waiting on NewDot payout before closing this one out? |
@sonialiap, @parasharrajat, @thienlnam, @shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Thanks for confirming that we don't need a regression test. In that case I'm closing out the issue since we do not need to keep the issue open for payout via NewDot |
Payment requested as per #26092 (comment) |
$750 payment approved for @parasharrajat based on BZ summary. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
It should not show any console error
Actual Result:
Console error appears (Warning: Failed prop type: Invalid prop
source
supplied toImage
, expected one of type [number].)Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: Dev 1.3.57.5
Reproducible in staging?: no
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
Screen.Recording.2023-08-22.at.10.11.39.AM.mov
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692679550499059
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: