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

[LOW] Distance: Handle errors with geocoding for offline distance requests #22719

Closed
neil-marcellini opened this issue Jul 11, 2023 · 32 comments
Closed

Comments

@neil-marcellini
Copy link
Contributor

neil-marcellini commented Jul 11, 2023

Check out the original plan in the design doc: Handling errors with geocoding.

Since then, we've updated the desired UX as outline in this Slack conversation. Here's the current desired UX.

Here is how the flow currently works

  1. Go offline
  2. Request money > Distance
  3. Enter invalid start and finish addresses
  4. Click next
  5. Choose a workspace
  6. Click request
  7. Go online
  8. Lots of issues

Here's how it should work after going online

  • The problematic request appears in the LHN as unread, with a red dot indicator. This matches the wave9 violations UX.
  • There is a red dot on the distance row on the transaction report page
  • Going back up the hierarchy, red dot also appears on the request preview in the expense report, and on the expense report preview in the workspace chat
  • We must be able to open all reports that potentially failed to create. Workspace chat, expense report, distance transaction report
  • After clicking on the distance row you are navigated to the distance request page and error messages are displayed under each invalid waypoint, instructing the user to edit them. When a waypoint is clicked the user can update the address and must use the suggestions which are now shown since they are online
  • When a new address is saved we clear any errors on the waypoint
  • When the save button is clicked we first make sure that all waypoints errors have been cleared, then call CreateDistanceRequest to try creating the request again instead of editing an existing request. We can identify that the request hasn’t been created yet because it doesn’t have a receipt.
    ❗ Note, this feels a bit sketchy. Is this going to work? Are we ok with the data only existing optimistically? Can we open all the chats without the request existing?
  • When the request is successfully created, clear all errors and make sure all optimistic data is updated or replaced.
  • Prior to retrying creation, the error messages can not be dismissed. If the user wants to give up they can delete the optimistic request with the normal delete flow and we must clean up all optimistic data.
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Aug 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 4, 2023

This issue has not been updated in over 15 days. 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!

@neil-marcellini neil-marcellini self-assigned this Aug 28, 2023
@neil-marcellini neil-marcellini changed the title [HOLD 22718] Handle errors with geocoding for offline distance requests Handle errors with geocoding for offline distance requests Aug 28, 2023
@neil-marcellini neil-marcellini added Weekly KSv2 and removed Monthly KSv2 labels Aug 28, 2023
@neil-marcellini neil-marcellini changed the title Handle errors with geocoding for offline distance requests [HOLD 22126] Handle errors with geocoding for offline distance requests Aug 29, 2023
@neil-marcellini
Copy link
Contributor Author

On hold for Fix error handling when creating a request fails because we'll need to use a lot of that functionality.

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@neil-marcellini
Copy link
Contributor Author

Still holding

@melvin-bot melvin-bot bot removed the Overdue label Sep 13, 2023
@melvin-bot melvin-bot bot added the Overdue label Sep 21, 2023
@neil-marcellini
Copy link
Contributor Author

Still holding, making some progress on that issue.

@melvin-bot melvin-bot bot removed the Overdue label Sep 22, 2023
@melvin-bot melvin-bot bot added the Overdue label Oct 2, 2023
@neil-marcellini
Copy link
Contributor Author

Still on hold

@neil-marcellini
Copy link
Contributor Author

ditto

@melvin-bot melvin-bot bot removed the Overdue label Oct 10, 2023
@neil-marcellini
Copy link
Contributor Author

I'm taking this off hold now that the PR for error handling on manual requests is under review.

@neil-marcellini neil-marcellini changed the title [HOLD 22126] Handle errors with geocoding for offline distance requests Handle errors with geocoding for offline distance requests Oct 11, 2023
@neil-marcellini neil-marcellini added Daily KSv2 and removed Weekly KSv2 labels Oct 11, 2023
@neil-marcellini
Copy link
Contributor Author

I'm starting on this now for the reason outlined here when closing the other issue.

@neil-marcellini
Copy link
Contributor Author

I'm checking on the priority of this issue in Slack here

@melvin-bot melvin-bot bot removed the Overdue label Feb 7, 2024
@greg-schroeder greg-schroeder changed the title [DISTANCE] LOW: Handle errors with geocoding for offline distance requests [LOW] Distance: Handle errors with geocoding for offline distance requests Feb 7, 2024
@neil-marcellini
Copy link
Contributor Author

Based on that Slack conversation, we decided that this is pretty low priority and we don't need anyone working on it right now. It has been moved to wave6 since wave5 has changed it's focus from working on the free plan, to deprecating it.

This issue is a small project that probably needs to go through the #whatsnext process, including a small design doc. You will have to decide if this should be implemented using an error handling approach, or using violations. Both are a decent amount of work. It's open for anyone to pick it up, and I’m happy to answer questions and give some guidance to whoever takes it on.

For now, once again, goodbye 👋

Copy link

melvin-bot bot commented Mar 4, 2024

This issue has not been updated in over 15 days. 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!

Copy link

melvin-bot bot commented Apr 8, 2024

This issue has not been updated in over 15 days. 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!

@melvin-bot melvin-bot bot added the Monthly KSv2 label Apr 8, 2024
@melvin-bot melvin-bot bot closed this as completed Jun 21, 2024
Copy link

melvin-bot bot commented Jun 21, 2024

@neil-marcellini, this Monthly task hasn't been acted upon in 6 weeks; closing.

If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants