zendesk / ticket_redaction_app

Other
9 stars 5 forks source link

Better error handling when redaction of attachment fails due to ticket closed or solved #84

Open brettgoss opened 6 years ago

brettgoss commented 6 years ago

When trying to redact an attachment from a closed on solved ticket, the redaction will fail with a generic: "One or more of the redactions failed...please try again" alert.

As this is a known Redaction API limitation, a 400 level error is returned from the API. This could probably be better handled, or even prevented by not allowing redaction of attachments if the ticket is closed or solved.