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

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

Build:
Build:
LAST BUILD BRANCH: IN-1555-migrate-to-uv
DEFAULT BRANCH: main
Ran 16 Sep 2025 04:07PM UTC
Jobs 1
Files 21
Run time 1min
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

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

7 of 10 new or added lines in 2 files covered. (70.0%)

1048 of 1091 relevant lines covered (96.06%)

0.96 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
97.87
dsc/item_submission.py
Jobs
ID Job ID Ran Files Coverage
1 17771900405.1 16 Sep 2025 04:07PM UTC 21
96.06
GitHub Action Run
Source Files on build 17771900405
  • Tree
  • List 21
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17771900405
  • 2ef5a850 on github
  • Next Build on IN-1455-create-batch-for-base-workflow (#17772511140)
  • 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