Skip to content

[HOLD for payment 2023-09-12] [$500] [Distance] - App crashes while using distance feature #26558

Closed

Description

@lanitochka17

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 #25980

Action Performed:

  1. Launch app
  2. Turn off mobile date
  3. Tap fab
  4. Tap Request money
  5. Tap Distance
  6. Enter Start address and save
  7. Enter Finish address and save (make sure you hit save)
  8. Turn on mobile data

Expected Result:

The app must generate map for address entered

Actual Result:

In online, the app crashes while using distance feature

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

Bug6186208_20230902_160813.mp4
test.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014a7eeceb0e8a9b8a
  • Upwork Job ID: 1698183373609881600
  • Last Price Increase: 2023-09-03
  • Automatic offers:
    • fedirjh | Reviewer | 26478908
    • pradeepmdk | Contributor | 26478909

Activity

  1. added
    DeployBlockerCash
    on Sep 2, 2023
  2. OSBotify commented on Sep 2, 2023

    @OSBotify
    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.
  3. melvin-bot commented on Sep 2, 2023

    @melvin-bot

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

  4. added
    External
    on Sep 3, 2023
  5. changed the title [-]Distance - App crashes while using distance feature[/-] [+][$500] Distance - App crashes while using distance feature[/+] on Sep 3, 2023
  6. melvin-bot commented on Sep 3, 2023

    @melvin-bot
  7. added
    Help Wanted
    on Sep 3, 2023
  8. melvin-bot commented on Sep 3, 2023

    @melvin-bot

    Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new.

  9. melvin-bot commented on Sep 3, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh (External)

  10. b4s36t4 commented on Sep 3, 2023

    @b4s36t4
    Contributor

    This issue only happens only when we click on Save button. Because we've wrapped the WaypointEditor component with a From when we click on save only string get's saved. No lat & lognitude is being saved.

    If we're offline we save lat & lag as null which is causing the app to crash. We seems to handle the null values but not the app though.

    So What I want to confirm is even if we go online because we've saved lat & lan as null or 0 route markers won't be pointed which results in no route paint on the map.

    what shall we do here? when user become online fetch the lat & lng for the waypoints which have lat & lng null values??

    if not doesn't that cause an issue itself??.

    This save button also raises an issue flow follows this way

    Open Requst Money
    Select a waypoint from the autocomplete input
    Select the same waypoint but now use the save button
    Select finish address
    Observe only one marker is showing in the app (Finish marker since we have lat & lng for the waypoint).

    Whenever we click on Save there's no lat & lng.

    Shall we just remove the save button?? That reduces the 90% of effort.

    Screenshot 2023-09-03 at 11 35 27 AM
  11. 53 remaining items

  12. JmillsExpensify commented on Sep 13, 2023

    @JmillsExpensify
    Contributor

    Payment summary:

    • Issue reporter: N/A
    • Contributor: @pradeepmdk $750 (incl. urgency bonus)
    • Contributor+: @fedirjh $750 (incl. urgency bonus)

    Offers are out. Let me know when you've accepted and we'll get this kicked off.

  13. fedirjh commented on Sep 13, 2023

    @fedirjh
    Contributor

    Do you think we require any regression tests in light of the crash?

    @JmillsExpensify I believe we should require a regression test for this issue #26589, as it addresses the offline flow and should cover this crash.

    Let me know when you've accepted and we'll get this kicked off.

    Accepted.

  14. melvin-bot commented on Sep 18, 2023

    @melvin-bot

    @JmillsExpensify, @pradeepmdk, @fedirjh, @hayata-suenaga Huh... This is 4 days overdue. Who can take care of this?

  15. melvin-bot commented on Sep 20, 2023

    @melvin-bot

    @JmillsExpensify, @pradeepmdk, @fedirjh, @hayata-suenaga 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  16. hayata-suenaga commented on Sep 21, 2023

    @hayata-suenaga
    Contributor

    do we have a regression test?

  17. pradeepmdk commented on Sep 22, 2023

    @pradeepmdk
    Contributor

    @fedirjh here #26589 (comment) we are fixing here only the map is not loading when offline -> online on the web.

    if we need a regression test here can we take care here itself?

  18. fedirjh commented on Sep 22, 2023

    @fedirjh
    Contributor

    Regression Test Proposal

    1. Open app
    2. Go offline
    3. Tap fab -> Request money -> Distance
    4. Enter Start address and save
    5. Enter Finish address and save
    6. Turn on mobile data
    7. Verify the app doesn’t crash
    • Do we agree 👍 or 👎
  19. hayata-suenaga commented on Sep 25, 2023

    @hayata-suenaga
    Contributor

    The regression test proposal is above

  20. JmillsExpensify commented on Sep 25, 2023

    @JmillsExpensify
    Contributor

    Great thanks. I'll issue payouts now and get a regression test created.

  21. JmillsExpensify commented on Sep 25, 2023

    @JmillsExpensify
    Contributor

    All contributors paid out via Upwork. Regession test has also been created. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentDailyEngineeringExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions