Closed MichelleBlanchette closed 11 months ago
I actually don't think you can make this assumption because a Not Found error could also mean that the user lost view access to that task. That doesn't mean that it was actually deleted.
However, if you want to simply ignore that error and let the task be visually removed from the widget, that makes sense as the user no longer has access to that task anyways. This still sounds like a possibly risky assumption, though, so I'd rather the user simply refresh the page entirely to fix the widget's state rather than maintain (possibly incorrect) code for this edge case.
Steps to Recreate
An error notice should be displayed which says:
Desired Behavior
Simply proceed with removing the task since it is already gone (HTTP 404). Kinda weird, though, that Asana doesn't just return an HTTP 200 code since the task is actually valid and simply archived, but I can understand.