-
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-10-23] [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$500] MEDIUM: Web - Only one map is displayed for two distance requests if they are identical #27567
Comments
Triggered auto assignment to @alexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01bd660634ca8e76ff |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @MitchExpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ArekChr ( |
This looks like it's intended to me. @hayata-suenaga Could you please confirm if that is the case? |
@akinwale the two maps will be displayed if you reload the page, so I think it is not intended. And if it is intended It should display one map after reloading. There is still something need to be fixed |
Ah, gotcha. Makes sense. Looking 👀 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Only one map is displayed for two distance requests if they are identical. What is the root cause of that problem?There is unnecessary re-render that caused App/src/components/ReportActionItem/ReportPreview.js Lines 122 to 125 in 76c1559
What changes do you think we should make in order to solve the problem?Prevent re-render by adding another condition in
What alternative solutions did you explore? (Optional)N/A |
Proposal |
Added to the wave5 project as requested by @tgolen. |
Still looking for proposals. I don't think it is a back-end issue because it should only be merging the new incremental data to the front-end, so I would expect to see it only trying to merge a single transaction. |
I'm curious about the re-render proposal from @zukilover. What do you think of it @ArekChr? |
@zukilover, thanks for the proposal! Your current fix seems like a short-term solution. In the future, different props might cause the component to re-render, bringing back this bug. Could you please explore fixing the race condition for a more robust, long-term fix? |
I'm with @hoangzinh on this. Proof: First, you have 2 values in existingData (coming from optimistic data): Then, the operation from API Response: And finally, the merge result: FYI @tgolen |
Ah, I see what you mean. That is definitely not ideal that it is a string of comma separated IDs. Not good at all :( Ideally, the fix would be to make this a nested object like:
(which is also better than an array). cc @Gonals Could you take a look at this bug please and give your opinion on it? It looks like you were the one that implemented the Onyx response for this in Web-E. |
Yeah, I agree an object would be better. IIRC, I added this one mimicking We should probably update both. |
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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.83-11 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-10-20. 🎊 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:
|
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 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-10-23. 🎊 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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 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-10-23. 🎊 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:
|
@ArekChr - to prepare for the payment date, can you please complete the checklist? Thanks! |
@alexpensify I completed checklist here |
Whoops I missed that note, thanks! |
Here is the payment summary:
Upwork Job: https://www.upwork.com/jobs/~0141c4e4c10fcd3f72 *If applicable, the bonuses will be applied on the final payment Extra Notes regarding payment: The job is closed, so I had to create a new one. |
@Ahmed-Abdella - please accept the job in Upwork and I can complete the process. Thanks! |
@alexpensify I accepted the offer. Thanks! |
Perfect, all set here! I'm going to close now. |
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:
Two maps should be displayed because there are two requests
Actual Result:
Two maps should be displayed because there are two requests
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.70.5
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.14-09-23.17_44_59.webm
Recording.4509.mp4
Expensify/Expensify Issue URL:
Issue reported by:@Ahmed-Abdella
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694704076992449
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: