Optionally Allow Non-technical Messages for Errors During Batch Import

Created on 9 January 2024, 11 months ago

Problem/Motivation

Currently, there is a permission "display technical errors" that allows users to either see the exception message or else get a non-technical message when viewing the pull form (for example, a 403 error when trying to load the channels from a remote server). However, this does not apply to errors that occur during the pull itself, particularly if there is an exception during the batch processing. I am wondering if we can wrap the batch process (ImportBatchHelper::importUrlBatch) in a try/catch and give either nontechnical or technical errors depending on whether the user has "display technical errors" permission?

✨ Feature request
Status

Active

Version

3.0

Component

Entity Share Client

Created by

πŸ‡ΊπŸ‡ΈUnited States dgroene

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dgroene
  • πŸ‡ΊπŸ‡ΈUnited States kenficara

    +1 For experienced but nontechnical users, a generic error message is insufficient, but in many cases here, so is the technical error. An AJAX timeout message doesn't give them enough information to figure things out on their own or create a meaningful support request. It also doesn't tell them how much if any of the batch was processed. If we could provide more specific information we could save at least one round of support conversations, and perhaps save people some panic moments.

Production build 0.71.5 2024