-
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-29] [$500] Mweb-IOU- In distance request money, the address suggessions are fetched in forced offline #26869
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Bug0 Triage Checklist (Main S/O)
|
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @nkuoch ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.In distance request money, the address suggessions are fetched in forced offline What is the root cause of that problem?The AddressSearch component uses the React Native Google Places Autocomplete module which implements its own logic and request handling for fetching data from a different API URL. What changes do you think we should make in order to solve the problem?Update AddressSearch by conditionally setting the
Since
Since this approach leads to a console error when trying to search for addresses, I also propose implementing a change in the upstream module (Google Places Autocomplete) to add a condition to specifically not send requests if const _request = (text) => {
_abortRequests();
+ if (!url) {
+ return;
+ }
if (supportedPlatform() && text && text.length >= props.minLength) {
// ... What alternative solutions did you explore? (Optional)None. |
The forced offline is mainly staging feature, I dont think this is a deploy blocker |
I think this is similar - #26478 (comment) - asking |
This issue is different and I think it can be external |
Job added to Upwork: https://www.upwork.com/jobs/~01718c850ed1cc7d9c |
Current assignee @Christinadobrzyn is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.In distance request money, the address suggessions are fetched in forced offline What is the root cause of that problem?In forced offlined, we only prevent making API from the App repository. But we still can call the API from libraries. In this case We are making requests in react-native-google-places-autocomplete library. So that the API still can executed What changes do you think we should make in order to solve the problem?I suggest that we should pass isOffline props to GooglePlacesAutocomplete and in GooglePlacesAutocomplete we will prevent making API if isOffline is true we should update like this
|
hey @allroundexperts can you let me know what you think of #26869 (comment) |
Thanks for your proposal @DylanDylann. I think your proposal is having essentially the same concept as what @akinwale proposed earlier. Since they were first to propose the working solution, I think we should go with @akinwale's proposal. 🎀 👀 🎀 C+ reviewed |
Current assignee @nkuoch is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @allroundexperts Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@nkuoch @allroundexperts My main PR is ready for review. I have also created the dependency PR in the Google Places Autocomplete repo. There are currently no reviewers assigned, but it will require a review as well before merging. |
🎯 ⚡️ Woah @allroundexperts / @akinwale, great job pushing this forwards! ⚡️ The pull request got merged within 3 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.72-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-09-29. 🎊 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:
|
@allroundexperts do we want to regression test for this? Payouts due: Issue Reporter: NA Eligible for 50% #urgency bonus? Y - #26869 (comment) Upwork job is here. |
Not really. This was a dev only feature which doesn't affect end users. |
Sounds good! Thank you! I've paid this out. Closing, feel free to reopen if needed! |
$750 payment approved for @allroundexperts 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:
3.Tap Preferences
4.Toggle on Forced offline
5.Navigate to LHN
6.Tap FAB
8.Tap Distance
9.Tap Start
10.Enter few characters of an address
11.Turn off mobile data
12.Enter few characters of an address
Expected Result:
In distance request money, If we turn off mobile data, the address suggestions are not fetched.
Similarly, the address suggessions must not be fetched in forced offline.
Actual Result:
In distance request money, If we turn off mobile data, the address suggestions are not fetched.
But, the address suggessions are fetched in forced offline.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.64-0
Reproducible in staging?: Y
Reproducible in production?: N
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
Bug6189884_app.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:@
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: