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

MITLibraries / dspace-submission-composer / 17771900405 / 1
96%
main: 96%

Build:
Build:
LAST BUILD BRANCH: IN-1632-deployment-updates
DEFAULT BRANCH: main
Ran 16 Sep 2025 04:07PM UTC
Files 21
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Sep 2025 03:42PM UTC coverage: 96.059%. First build
17771900405.1

push

github

jonavellecuerdo
Update domain and data persistence models for new records

Why these changes are being introduced:
* Adding an explicit 'batch creation' step to the DSC workflow
means a new method that can handle all init-level operations, such as
persisting records to DynamoDB for the first time. This allows for
simplifying some of the methods in the ItemSubmission and ItemSubmissionDB
models.

How this addresses that need:
* Refactor ItemSubmissionDB.create as a conditional save method;
instances are created by calling the ItemSubmissionDB constructor
* Add save method to domain model, which uses ItemSubmissionDB.create
to perform conditional save
* Deprecate unused ItemSubmissionDB.get_or_create method

Side effects of this change:
* This encourages the following approach:
if writing new records, use ItemSubmission.create + ItemSubmission.save
if updating existing records, set attributes on ItemSubmission() + ItemSubmission.upsert_db

TLDR: Any upserts will update and overwrite an existing record in DynamoDB.

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

1048 of 1091 relevant lines covered (96.06%)

0.96 hits per line

Source Files on job 17771900405.1
  • Tree
  • List 21
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17771900405
  • 2ef5a850 on github
  • Next Job for on IN-1455-create-batch-for-base-workflow (#17772511140.1)
  • Delete
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