yalelibrary / YUL-DC

Preliminary issue tracking for Yale University Libraries Digital Collections project
3 stars 0 forks source link

Update batch process error messages - round 1 #2924

Closed sshetenhelm closed 3 weeks ago

sshetenhelm commented 2 months ago

Story When batch processes encounter errors, the messages that appear do not always provide clarity on the actual reason for the error. We would like to update messages to provide (a) a better representation of the error and (b) actionable next-steps for processes initiated by Management users.

This ticket is for updating the language on the coding end. Error message gathering and new language creation was addressed in ticket #2882.

Additional needed updates may be forthcoming in a separate ticket (#2952)

For the messages - We would like to display a more user friendly message first, and then follow with the original error message as produced by Management. This way, users will have an idea of what is happening, and DCS team members will have the valuable information (such as specific Preservica URIs, etc.) provided by the error without having to download spreadsheets every time they want to investigate.

For example:

The admin set code is missing or incorrect. Please ensure an admin_set value is in the correct spreadsheet column and that your 3 or 4 letter code is correct.

Message from system - 
Skipping row [3] with unknown admin set [] for parent:

Please use the language provided in column D of this spreadsheet: DCS_ErrorMessageUpdates.xlsx

If the proposed formatting won't work for any reason, we are open to your suggestions.

Acceptance

Update batch process code to display new messages for batch process errors

jpengst commented 1 month ago

Do we know which job/process the Skipping row [2] bad URI(is not URI?): error is coming from?

sshetenhelm commented 1 month ago

It showed up in a Create Parent Objects batch process when a staff member put in a Preservica URI that had a spacing issue (there was a line break between /structural-objects/ and the Preservica UUID in the cell).

jpengst commented 1 month ago

PR: https://github.com/yalelibrary/yul-dc-management/pull/1451

K8Sewell commented 4 weeks ago

Deployed to Test with release v2.72.5

K8Sewell commented 4 weeks ago

Looking mostly good on Test. Unsure if all are as they are expected - please see below. Because Preservica's Test instance is only connected to UAT I will promote this to there so that preservica objects can be evaluated better.

no admin set Image

bad uri Image

request error 404 - SO not found in db Q: should the message also include 'The given URI does not match the URI of an entity of this type in Preservica. Please make sure your Preservica URI and object structure type is correct.' ? The system message matches but was unsure if it should expect the user friendly text as well in the message box. Image

sshetenhelm commented 4 weeks ago

So for these, if possible, I was hoping to have both the user friendly text displayed and the system displayed. So, it would look like this:

_The admin set code is missing or incorrect. Please ensure an admin_set value is in the correct spreadsheet column and that your 3 or 4 letter code is correct.

Message from system - Skipping row [3] with unknown admin set [] for parent:_

The system message gives useful information that Lauren and I can use to help troubleshoot without having to look elsewhere, while the user friendly part is to empower staff to figure it out themselves. If they can't, that's where the system message would come in handy for Lauren and I.

Is it possible to include both messages in the Note cell for all of these?

jpengst commented 4 weeks ago

Ah! Yeah, we can definitely do that :) I'll get a PR up for that today

jpengst commented 3 weeks ago
image
jpengst commented 3 weeks ago

PR: https://github.com/yalelibrary/yul-dc-management/pull/1452

K8Sewell commented 3 weeks ago

Deployed to Test with release v2.72.6

K8Sewell commented 3 weeks ago

Looking good on Test. Will promote to UAT.

no admin set Image

bad uri Image

sshetenhelm commented 3 weeks ago

Looking good in UAT! Thank you!

Ready to close :)