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

MITLibraries / dspace-submission-composer / 13528617403

25 Feb 2025 06:45PM UTC coverage: 94.22% (-0.002%) from 94.222%
13528617403

Pull #152

github

jonavellecuerdo
Add some flexibility to the SimpleCSV workflow

Why these changes are being introduced:
* Rework SimpleCSV methods to better handle modest variations
in provided metadata CSV files (field names) and
bitstreams (filenames).

How this addresses that need:
* Define SCCS._get_item_identifier to retrieve identifier from accepted
range of values
* Remove 'item_identifier' from metadata mapping JSON files
* Rework SimpleCSV reconcile methods to match metadata and bitstreams
based on presence of item identifier in bitstream filename;
remove code to retrieve item identifiers from bitstream filenames;
for bitstreams without metadata, indicate filenames instead
* Use pandas to read metadata CSV file
* Add and update unit tests

Side effects of this change:
* The column in the metadata CSV file that contains the item identifier
can take on any name as long as it is listed in the 'source_field_name'
for the 'item_identifier' entry in the metadata mapping JSON file.

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/IN-1186
Pull Request #152: Add flexibility to SimpleCSV workflow

37 of 39 new or added lines in 5 files covered. (94.87%)

652 of 692 relevant lines covered (94.22%)

0.94 hits per line

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

78.95
/dsc/workflows/sccs.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

© 2025 Coveralls, Inc