Skip to content
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-01-24] [$500] Android - Request-Wrong error message appears when tryin to choose my location for start and finish #32863

Closed
1 of 6 tasks
lanitochka17 opened this issue Dec 11, 2023 · 45 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 11, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.11-1
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Open the App
  2. Login with any account
  3. Go to FAB -> Request money -> Distance
  4. Choose my location for start and finish points

Expected Result:

There should not be an error message, only when you later create a request, an error appears that you need to select different addresses

Actual Result:

An error message appears if choose as Finish point my location if `my location was chosen as Start point before

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6309598_1702326077221.Record_2023-12-11-18-29-57_4f9154176b47c00da84e32064abf1c48.mp4

Bug6309598_1702326077212!Screenshot_2023-12-11-18-30-52-00_4f9154176b47c00da84e32064abf1c48

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019bd90e7731b4b6c6
  • Upwork Job ID: 1737972831436316672
  • Last Price Increase: 2023-12-28
Issue OwnerCurrent Issue Owner: @sakluger
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Dec 11, 2023
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Dec 11, 2023

Triggered auto assignment to @yuwenmemon (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@yuwenmemon
Copy link
Contributor

Taking a look

@yuwenmemon
Copy link
Contributor

Figuring out Android on dev... https://expensify.slack.com/archives/C01GTK53T8Q/p1702338402694549

@yuwenmemon
Copy link
Contributor

It seems like this is by design and would happen on production too:

// An error here can be because of these reasons
// 1. User denied location permission
// 2. Failure to open the permission dialog
// 3. Device location settings can't be changed or the device doesn't support some location settings
// 4. Any internal error
// For all of these we will return a permission denied error.

For all errors, we show a "Permission Denied" error. cc @huzaifa-99

@yuwenmemon
Copy link
Contributor

I also can't seem to reproduce locally:

Kapture.2023-12-11.at.17.41.15.mp4

So going to remove the blocker and unassign.

@huzaifa-99 curious for your thoughts here

@yuwenmemon yuwenmemon added Weekly KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Dec 12, 2023
@yuwenmemon yuwenmemon removed their assignment Dec 12, 2023
@yuwenmemon yuwenmemon added the Bug Something is broken. Auto assigns a BugZero manager. label Dec 12, 2023
Copy link

melvin-bot bot commented Dec 12, 2023

Triggered auto assignment to @sakluger (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 12, 2023
Copy link

melvin-bot bot commented Dec 12, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@huzaifa-99
Copy link
Contributor

Hi @yuwenmemon.

It seems like this is by design and would happen on production too.
// An error here can be because of these reasons
// 1. User denied location permission
// 2. Failure to open the permission dialog
// 3. Device location settings can't be changed or the device doesn't support some location settings
// 4. Any internal error
// For all of these we will return a permission denied error.
For all errors, we show a "Permission Denied" error. cc @huzaifa-99

Yes, we have to allow location permission.

@huzaifa-99 curious for your thoughts here

If location permission is allowed then it's up to the mobile phone's GPS to give us the location, if it fails to do so then we will get the error.

  1. maybe because the GPS is broken (rare case)
  2. or GPS is working with a delay (in this case trying a second time will mostly work. In my testing I was not getting this issue)
  3. any internal issues with @react-native-community/geolocation library.

@kaushiktd
Copy link
Contributor

kaushiktd commented Dec 13, 2023

Despite extensive testing on my end, I've encountered difficulties reproducing the same error within my local environment.
To provide further insight, here are the steps I've taken:
Emulating the conditions described.
Ensuring that permissions, configurations, and dependencies are identical to the production environment.
Attempting to replicate the scenario using various devices and platforms.
I've been unable to reproduce the issue, which suggests that there might be environmental or specific conditions in your setup that I'm not currently encountering.

Video:

https://drive.google.com/file/d/11sMDcQFbVdHdWdCJT8j09JqrqtdLAgAI/view?usp=sharing

@melvin-bot melvin-bot bot added the Overdue label Dec 14, 2023
@sakluger
Copy link
Contributor

@kaushiktd what version of the app are you using? I was able to reproduce on Android native version 1.4.13.1:

image

@melvin-bot melvin-bot bot removed the Overdue label Dec 14, 2023
@kaushiktd
Copy link
Contributor

kaushiktd commented Dec 15, 2023

@sakluger my version was 1.4.12-0

And I also checked with version 1.4.13-2. Still not able to reproduce.
https://drive.google.com/file/d/168Tj_H2U01SSegZDB8kDOJ6hA2O5E4n_/view?usp=sharing

Copy link

melvin-bot bot commented Dec 18, 2023

@sakluger Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Dec 18, 2023
Copy link

melvin-bot bot commented Dec 18, 2023

@sakluger Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented Jan 3, 2024

Triggered auto assignment to @amyevans, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@amyevans
Copy link
Contributor

amyevans commented Jan 3, 2024

Makes sense, agreed let's bump up the timeout.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 3, 2024
Copy link

melvin-bot bot commented Jan 3, 2024

❌ There was an error making the offer to @kaushiktd for the Contributor role. The BZ member will need to manually hire the contributor.

@kaushiktd
Copy link
Contributor

kaushiktd commented Jan 4, 2024

@sakluger @eVoloshchak so there was an error in making offer to me. Should I do anything from my side?

@sakluger
Copy link
Contributor

sakluger commented Jan 4, 2024

@kaushiktd no action required on your end, I'll manually sent you an offer.

@kaushiktd
Copy link
Contributor

@sakluger Thank you. Should I start working on PR then?

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jan 5, 2024
@amyevans
Copy link
Contributor

amyevans commented Jan 5, 2024

@kaushiktd Yes!

@kaushiktd
Copy link
Contributor

kaushiktd commented Jan 5, 2024

@amyevans PR is ready actually. See here,
#34007 (comment)

@eVoloshchak is assignee there. 🙂

@kaushiktd
Copy link
Contributor

The PR is ready for review. @eVoloshchak Can you please check that?

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jan 17, 2024
@melvin-bot melvin-bot bot changed the title [$500] Android - Request-Wrong error message appears when tryin to choose my location for start and finish [HOLD for payment 2024-01-24] [$500] Android - Request-Wrong error message appears when tryin to choose my location for start and finish Jan 17, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 17, 2024
Copy link

melvin-bot bot commented Jan 17, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jan 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.25-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 2024-01-24. 🎊

For reference, here are some details about the assignees on this issue:

  • @eVoloshchak requires payment through NewDot Manual Requests
  • @kaushiktd requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Jan 17, 2024

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:

  • [@eVoloshchak] The PR that introduced the bug has been identified. Link to the PR:
  • [@eVoloshchak] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@eVoloshchak] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@eVoloshchak] Determine if we should create a regression test for this bug.
  • [@eVoloshchak] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@sakluger] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@eVoloshchak
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: there isn't a PR that introduced this bug, we're just changing the config value to allow for poor GPS connection
  • The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: N/A
  • A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: additional discussion isn't needed, this is an extreme edge case
  • Determine if we should create a regression test for this bug.
    It's hard to reliably simulate a poor GPS connection on Android (I've had to use a basement), I don't think QA team would be able to do that

@amyevans amyevans added Daily KSv2 and removed Weekly KSv2 labels Jan 26, 2024
@sakluger
Copy link
Contributor

Summarizing payment on this issue:

Contributor: @kaushiktd - $500, paid via Upwork
Contributor+: @eVoloshchak - $500, please request on Newdot

@JmillsExpensify
Copy link

$500 approved for @eVoloshchak based on summary above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Development

No branches or pull requests

8 participants