Chore/a11ymap clean up edit error handling #503
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🖊️ Description
💡 What? Why? How?
Error handling in AutoEditor.tsx was very detailed and targets multiple different error scenarios (db failure, api failure).
In case of a db problem, the edit will still be saved to osm and later be re-imported to our db. Thus, the user should see a success message stating that the edit will become visible in a while.
➕ Additonal comments/questions
I added some explanatory comments that will be removed.
📎 Related Ticket
👀 Sneak Peek (Optional)
Include the link to the feature deployment or screenshots/a video.
Before creating this merge request, go over the following checklist (click to expand).
Remove any items that are not applicable.
💪 I have tested my code
🧼 I have cleaned up my code
--interactive
if applicable, keeping commits in sensible chunks if possible).🔍 I have performed a self-review of my code
✨ I have created a nice pull request
📝 I updated the documentation
🔍 Reviewing
When reviewing this merge request, here are some things to keep in mind: