App icon indicating copy to clipboard operation
App copied to clipboard

[ON HOLD #34610] [$500] Distance - Duplicate waypoints message does not instantly show up in distance request editor

Open kbecciv opened this issue 1 year ago β€’ 32 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: v1.4.41-3 Reproducible in staging?: y Reproducible in production?: y 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. Go to workspace chat.
  2. Go to + > Request money > Distance.
  3. Enter A-B-A waypoints.
  4. Reorder the waypoints by dragging so that it becomes A-A-B.
  5. Note that error message for duplicate waypoints instantly shows up.
  6. Change the distance back to A-B-A.
  7. Proceed to confirmation page.
  8. Click Distance.
  9. Reorder the waypoints by dragging so that it becomes A-A-B.
  10. Note that error message for duplicate waypoints instantly shows up.
  11. Create the distance request with A-B-A waypoints.
  12. Go to request details page.
  13. Click Distance.
  14. Reorder the waypoints by dragging so that it becomes A-A-B.

Expected Result:

The error message for duplicate waypoints will instantly show up.

Actual Result:

The error message for duplicate waypoints does not instantly show up. It only shows up after user attempts to save the duplicate waypoints.

Workaround:

Unknown

Platforms:

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

  • [x] Android: Native
  • [x] Android: mWeb Chrome
  • [x] iOS: Native
  • [x] iOS: mWeb Safari
  • [x] MacOS: Chrome / Safari
  • [x] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/Expensify/App/assets/93399543/bcc27658-2a81-406a-88ec-03e39c76df46

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b6febd25fc272874
  • Upwork Job ID: 1757796016628969472
  • Last Price Increase: 2024-04-10

kbecciv avatar Feb 14 '24 15:02 kbecciv

Job added to Upwork: https://www.upwork.com/jobs/~01b6febd25fc272874

melvin-bot[bot] avatar Feb 14 '24 15:02 melvin-bot[bot]

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

melvin-bot[bot] avatar Feb 14 '24 15:02 melvin-bot[bot]

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

melvin-bot[bot] avatar Feb 14 '24 15:02 melvin-bot[bot]

We think that this bug might be related #wave5-free-submitters CC @dylanexpensify

kbecciv avatar Feb 14 '24 15:02 kbecciv

Proposal

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

When editing a Distance request, the duplicate waypoints error is not shown immediately.

What is the root cause of that problem?

When implementing this immediate error display, it was added only for the creation flow: https://github.com/Expensify/App/pull/32999, and the edit flow was missed.

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

We need to add the same changes (made in https://github.com/Expensify/App/pull/32999 to IOURequestStepDistance) to the DistanceRequest/index.js, which is used on the edit flow.

As a side note, we should also add the !isEditingRequest as a third param here to merge the correct collection (non-draft transactions for the Edit flow) when updating the waypoints:

Transaction.updateWaypoints(transactionID, newWaypoints, !isEditingRequest)

https://github.com/Expensify/App/blob/6ed3706f7e69b330b7519dfd1e70864377bbab37/src/components/DistanceRequest/index.js#L203-L205

What alternative solutions did you explore? (Optional)

paultsimura avatar Feb 14 '24 16:02 paultsimura

I think DistanceRequest should / will be removed in https://github.com/Expensify/App/issues/34610

@zanyrenney Can you please put this on hold for https://github.com/Expensify/App/issues/34610

s77rt avatar Feb 14 '24 22:02 s77rt

DONE, thanks!

zanyrenney avatar Feb 19 '24 15:02 zanyrenney

This is on HOLD. so Not a daily priority just now.

zanyrenney avatar Feb 21 '24 15:02 zanyrenney

Not overdue, on hold.

zanyrenney avatar Feb 21 '24 15:02 zanyrenney

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

melvin-bot[bot] avatar Feb 21 '24 16:02 melvin-bot[bot]

Still on hold

s77rt avatar Feb 23 '24 20:02 s77rt

Still on hold

s77rt avatar Feb 26 '24 16:02 s77rt

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

melvin-bot[bot] avatar Feb 28 '24 16:02 melvin-bot[bot]

ON HOLD

zanyrenney avatar Feb 29 '24 16:02 zanyrenney

On hold

s77rt avatar Mar 04 '24 12:03 s77rt

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

melvin-bot[bot] avatar Mar 06 '24 16:03 melvin-bot[bot]

Still on hold

s77rt avatar Mar 06 '24 23:03 s77rt

Still on hold.

zanyrenney avatar Mar 11 '24 11:03 zanyrenney

Going to move this to weekly, as it's been on hold a while.

zanyrenney avatar Mar 11 '24 11:03 zanyrenney

@s77rt feel free to DM me if you disagree / when you think we should be re-prioritising this.

zanyrenney avatar Mar 11 '24 11:03 zanyrenney

Weekly sounds good

s77rt avatar Mar 11 '24 11:03 s77rt

thank you @s77rt

zanyrenney avatar Mar 11 '24 11:03 zanyrenney

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

melvin-bot[bot] avatar Mar 13 '24 16:03 melvin-bot[bot]

Still on hold

s77rt avatar Mar 19 '24 21:03 s77rt

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

melvin-bot[bot] avatar Mar 20 '24 16:03 melvin-bot[bot]

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

melvin-bot[bot] avatar Mar 27 '24 16:03 melvin-bot[bot]

It looks like the other issue is closed but not clear why. Gonna wait for the next overdue label till things are cleared up

s77rt avatar Apr 01 '24 19:04 s77rt

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

melvin-bot[bot] avatar Apr 03 '24 16:04 melvin-bot[bot]

It has now been reopened: 2024-04-04_10-52-12

zanyrenney avatar Apr 04 '24 09:04 zanyrenney

distance being worked on in VIPVSB. https://expensify.slack.com/archives/C0671JDRKQW/p1710872125301479

adding to that project.

zanyrenney avatar Apr 04 '24 09:04 zanyrenney