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

[Distance] Distance - 'Use current location' does not invoke error message when clicked offline #26478

Closed
3 of 6 tasks
lanitochka17 opened this issue Sep 1, 2023 · 19 comments
Closed
3 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Monthly KSv2 Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Sep 1, 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!


Issue found when executing PR #25990

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to + > Request money > Distance
  3. Go offline
  4. Go to Start
  5. Click Use current location

Expected Result:

The error message 'We were unable to find your location, please try again or enter an address manually' shows up

Actual Result:

No error message shows up

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.61-1

Reproducible in staging?: Yes

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

Bug6184841_bandicam_2023-09-01_17-37-36-040.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal team

Slack conversation:

View all open jobs on GitHub

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Sep 1, 2023
@OSBotify
Copy link
Contributor

OSBotify commented Sep 1, 2023

👋 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.

@melvin-bot
Copy link

melvin-bot bot commented Sep 1, 2023

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

@pecanoro
Copy link
Contributor

pecanoro commented Sep 1, 2023

Looking!

@allroundexperts
Copy link
Contributor

allroundexperts commented Sep 1, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Use current location does not invoke error message when offline.

What is the root cause of that problem?

We have not set a timeout when making a geo location request.

What changes do you think we should make in order to solve the problem?

We just need to set a timeout option here.

ie Replace getCurrentPosition(onSuccess, onError); with getCurrentPosition(onSuccess, onError, {timeout: 1000})

What alternative solutions did you explore? (Optional)

We can also prevent the request by checking if the user is offline in this function. If the user is offline, we can call onError function and set an appropriate error code.

@pecanoro
Copy link
Contributor

pecanoro commented Sep 1, 2023

Since the same PR caused a few blockers we are discussing internally if we should revert it and polish it before deploying it again.

@huzaifa-99
Copy link
Contributor

I will be fixing this with a new PR (taking changes from #25990)

cc: @hayata-suenaga @narefyev91

@huzaifa-99
Copy link
Contributor

Should we just hide the 'Use current location' button when offline @hayata-suenaga?

@pecanoro
Copy link
Contributor

pecanoro commented Sep 1, 2023

PR reverted here, so I am removing the deploy blocker label and I will let @huzaifa-99 handle it in the new PR.

@pecanoro pecanoro added Daily KSv2 Hourly KSv2 Bug Something is broken. Auto assigns a BugZero manager. and removed Hourly KSv2 DeployBlockerCash This issue or pull request should block deployment Daily KSv2 labels Sep 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 1, 2023

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

@melvin-bot

This comment was marked as outdated.

@hayata-suenaga
Copy link
Contributor

@huzaifa-99 when you create the new PR, please link this issue to your PR so that this issue can be closed when your fix is deployed

@huzaifa-99
Copy link
Contributor

Sure, I will do that very soon @hayata-suenaga

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 2, 2023
@lanitochka17 lanitochka17 changed the title Distance - 'Use current location' does not invoke error message when clicked offline [Distance] Distance - 'Use current location' does not invoke error message when clicked offline Sep 5, 2023
@Christinadobrzyn
Copy link
Contributor

Hey @huzaifa-99 this issue seems similar although it involves typing an address instead of "current location" but do you think the fix will be the same?

@huzaifa-99
Copy link
Contributor

Hi @Christinadobrzyn.

I believe the issue you mentioned is different (has a different RCA/fix).

@hayata-suenaga
Copy link
Contributor

@Christinadobrzyn the issue you linked is different from this one 🙇

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

This issue has not been updated in over 15 days. @pecanoro, @huzaifa-99 eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@hayata-suenaga
Copy link
Contributor

@huzaifa-99 can you confirm that this issue was fixed after your second PR was deployed?

@huzaifa-99
Copy link
Contributor

@hayata-suenaga yes, it's fixed. We disable the 'use current location' button in offline mode.

@hayata-suenaga
Copy link
Contributor

this issue was reported by applause and doesn't involve payment to any party. Closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Monthly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

8 participants