Skip to content

[$500] BUG: [distance] missing front end waypoint validation #26545

Description

@neil-marcellini

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


Action Performed:

  1. Run App on latest main branch (for now)
  2. Sign in with an account on the distance requests beta (or enable all betas)
  3. Click green plus, request money, distance
  4. Enter the same start and finish addresses
  5. Hit 'Next'

Expected Result:

There should be an error message saying "It looks like there's a duplicate waypoint, please edit and try again". It shouldn't be possible to navigate to the next step in the flow if there's an error message.

From the design doc:

When 2 or more waypoints are set we should validate them to ensure that each adjacent waypoint has a unique address, essentially removing redundant waypoints. For example you can drive from your home, to work, and back, but not from home to work, to work, and back. This also covers the case where there’s no route between the same start and finish waypoints. If validation fails we’ll set an error message under transaction.errorFields.waypoints and we won’t fetch the route.

When transaction.errorFields.route contains errors we’ll render an error message under the map view with a new component called ErrorMessageSection. It will contain this code from OfflineWithFeedback. The user will see the map with their waypoints but no route. The error message will instruct the user to edit the waypoints so that a route can be displayed.

Actual Result:

No error message

Workaround:

Yeah, don't do that

Platforms:

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

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

Version Number: Unreleased
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
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @neil-marcellini
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693613331633999

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0161f64322541822f9
  • Upwork Job ID: 1697765502650564608
  • Last Price Increase: 2023-09-02

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions