-
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 2024-07-22] [$500] Distance - Search list displays old searched results in offline mode #30123
Comments
Triggered auto assignment to @mallenexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01a86156cf627cbc84 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Proposalfrom: @cooldev900 Please re-state the problem that we are trying to solve in this issue.GooglePlacesAutocomplete shows old selected results in offline mode. What is the root cause of that problem?The route cause is that if the app turns to offline state, requestUrl.url becomes null and it couldn't send location filter request to google API. App/src/components/AddressSearch/index.js Line 400 in 6031f3e
And then even if we change the input value, the request won't will be run in request function so dataSource state value doesn't change. And if we don't search anything and it turns to offline, the predefined places shows in GooglePlaceAutocomplete. What changes do you think we should make in order to solve the problem?Regarding discussion, we can filter recent destination by user's input in offline and send it as a props to GooglePlacesAutocomplete. App/src/components/AddressSearch/index.js Line 345 in 6031f3e
App/src/pages/iou/WaypointEditor.js Line 266 in 6031f3e
App/src/libs/actions/Transaction.ts Line 100 in 6031f3e
What alternative solutions did you explore? (Optional)N/A Resultscreen-capture.2.webm |
@cooldev900 This has not been merged yet Can you send the video with your solution? |
If this is an upstream bug, @FaridSafi might help you with this |
I will upload the video. |
ice_video_20231022-084232.webm
@shubham1206agra @FaridSafi |
@eVoloshchak, @mallenexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@eVoloshchak , can you please review the above proposal? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@cooldev900, thank you for the proposal! There are two ways we could go with this:
The problem with the first approach is that we'll be saving only a fraction of places (only those that the user has searched for earlier), so while offline this won't be very useful. Additionally, there will be no clear indication that the search is "restricted" while offline, it will essentially half-work, which is worse than not working at all imo @mallenexpensify, what do you think? |
I'm unsure, can you create a post in #expensify-open-source (since #expensify-bugs is being deprecated for External) and tag me in it? I'll cross-post in the internal distance room. Thx |
@eVoloshchak, @mallenexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@eVoloshchak can you create the #expensify-open-source post then drop the link in here? Thx |
@eVoloshchak @mallenexpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Upwork job price has been updated to $500 |
@eVoloshchak, @mallenexpensify, @neil-marcellini, @pac-guerreiro, @dubielzyk-expensify Huh... This is 4 days overdue. Who can take care of this? |
@mallenexpensify the PR was merged so this is awaiting payment now. Looks like the automation failed, would you please handle it manually? |
Contributor+: @eVoloshchak due $500 via NewDot With many changes for offline distance bugs, do we want a new test case for this? I'm unsure cc @paultsimura since it's an offline distance issue. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 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 2024-07-22. 🎊 For reference, here are some details about the assignees on this 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:
|
Payment Summary
BugZero Checklist (@mallenexpensify)
|
@eVoloshchak, @mallenexpensify, @neil-marcellini, @pac-guerreiro, @dubielzyk-expensify Eep! 4 days overdue now. Issues have feelings too... |
@eVoloshchak plz complete the BZ checklist above. |
Regression Test Proposal
Do we agree 👍 or 👎 |
Contributor+: @eVoloshchak due $500 via NewDot Test case Thanks all! |
$500 approved for @eVoloshchak |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.3.88-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Search result should update according to entered letter
Actual Result:
Search list displays old searched results in offline mode
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
Windows: Chrome
Bug6245602_1697901225387.Recording__1286.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @eVoloshchakThe text was updated successfully, but these errors were encountered: