• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MITLibraries / dspace-submission-composer / 18541989464

15 Oct 2025 08:37PM UTC coverage: 95.234% (-0.6%) from 95.784%
18541989464

push

github

jonavellecuerdo
Update batch creation report to capture errors

Why these changes are being introduced:
* While errors during the 'submit' and 'finalize' steps
are recorded in the DynamoDB table, errors that occur during
batch creation (the 'create' step) need to be captured and
included in reporting through some method. The purpose of these
changes are to pass along the list of errors returned by
Workflow.prepare_batch to the reporting module, CreateReport,
which renders a CSV file to report on item submissions
that fail batch creation.

How this addresses that need:
* Add 'errors' instance attr to CreateReport
* Define method for writing an 'errors' CSV file on CreateReport
* Define method for generating attachments
* Update signature of Workflow.send_report to accept instantiated
Reports (instead of classes)
* Add try-except block in 'create' CLI command to handle
'BatchCreationFailedError'

Side effects of this change:
*

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/IN-1512

27 of 35 new or added lines in 4 files covered. (77.14%)

1059 of 1112 relevant lines covered (95.23%)

0.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.84
/dsc/cli.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc