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

MITLibraries / dspace-submission-composer / 16972256085
95%

Build:
DEFAULT BRANCH: main
Ran 14 Aug 2025 05:31PM 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

14 Aug 2025 05:29PM UTC coverage: 97.235% (+0.5%) from 96.758%
16972256085

push

github

web-flow
Implement metadata transformer for OpenCourseWare workflow (#192)

Why these changes are being introduced:
* The updated OCW mapping involve more complex transformations
than the initial draft. These changes propose using a 'metadata
transformer' class with a series of methods to derive
DSpace metadata fields from source metadata, replacing
the metadata mapping JSON file.

How this addresses that need:
* Create OpenCourseWareTransformer class in OCW workflow module
* Define class methods for each field
* Add 'metadata_transformer' attribute to workflow class, set to
OpenCourseWareTransformer
* Create test module for transformer class
* Add 'metadata_transformer' attribute to workflow class
* Simplify method for reading metadata JSON file from zip file
* Remove field methods from workflow class
* Update 'item_metadata_iter' to use transformer
* Clean up tests

Side effects of this change:
* These changes suggest a potential revisit of the codebase architecture to support
metadata transformers.

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

84 of 85 new or added lines in 1 file covered. (98.82%)

1020 of 1049 relevant lines covered (97.24%)

0.97 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
98.48
5.63% dsc/workflows/opencourseware.py
Jobs
ID Job ID Ran Files Coverage
1 16972256085.1 14 Aug 2025 05:31PM UTC 21
97.24
GitHub Action Run
Source Files on build 16972256085
  • Tree
  • List 21
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16972256085
  • 77101855 on github
  • Prev Build on main (#16831668410)
  • Next Build on main (#16996050077)
  • 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