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

MITLibraries / geo-harvester / 8348631913
98%
main: 100%

Build:
Build:
LAST BUILD BRANCH: IN-1246-pip-audit
DEFAULT BRANCH: main
Ran 19 Mar 2024 06:58PM UTC
Jobs 1
Files 28
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

19 Mar 2024 06:56PM UTC coverage: 98.352% (-0.2%) from 98.513%
8348631913

Pull #221

github

ghukill
Refactor classes for record sources and formats

Why these changes are being introduced:

With the introduction of Alma as a source of records, and MARC as a format, it was exposing
some pain points in the previous architecture of classes that define a SourceRecord.

The logic needed to derive a normalized, MIT Aardvark file is a combination of where it came from
(source) and the metadata format of the original record.  Previously, there was a bit of leakage
between source and format, where format classes like FGDC may have some logic specific to only
OGM harvests.

By extending two classes, one specific to the source and one for the format, the logic can be correctly
encapsulated.  This also removes some conditional if/else and match logic in the SourceRecord class that
was specific to the record source.

How this addresses that need:
* 'formats' directory created under 'records' populated with metadata format classes, e.g. FGDC, ISO19139, etc.
* 'sources' directory created under 'records' populated with classes that define logic specific to the source, further
extending format classes
* each source, currenrly MIT, OGM, and Alma, all get composite SourceRecord classes of source + format that are specific to their harvest
* composite source + format classes have field methods defined like schema_provider_s or dct_references_s

Side effects of this change:
* None - inputs/outpus are the same, just code refactor

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/GDT-227
Pull Request #221: Encapsulate SourceRecord source and metadata format logic

149 of 154 new or added lines in 14 files covered. (96.75%)

1850 of 1881 relevant lines covered (98.35%)

0.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8348631913.1 19 Mar 2024 06:58PM UTC 0
98.35
GitHub Action Run
Source Files on build 8348631913
Detailed source file information is not available for this build.
  • Back to Repo
  • Pull Request #221
  • PR Base - main (#8270214850)
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