Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't rename Prozess_Digitalisierung_PREMIS.xml #67

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

djjuhasz
Copy link
Contributor

Fixes #58

Digitized (Vecteur) SIPs are the only type of SIP that contain a Prozess_Digitalisierung_PREMIS.xml file, and they will only ever contain a single dossier. Because digitized SIPs only have a single dossier that contains a single Prozess_Digitalisierung_PREMIS.xml file there's no need to rename the file in the PIP to avoid name clashes.

Changes:

  • Update the SIP identification logic - if a SIP has a Prozess_Digitalisierung_PREMIS.xml file then it must be a digitized SIP
  • Add a SIP validation check to confirm that digitized SIPs only contain a single dossier
  • Remove the SIP transformation code that renamed the Prozess_Digitalisierung_PREMIS.xml file

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 53.85%. Comparing base (effe3eb) to head (bc5d806).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/activities/transform_sip.go 75.00% 2 Missing and 2 partials ⚠️
internal/activities/validate_structure.go 62.50% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
- Coverage   54.06%   53.85%   -0.21%     
==========================================
  Files          29       29              
  Lines        2090     2087       -3     
==========================================
- Hits         1130     1124       -6     
- Misses        891      893       +2     
- Partials       69       70       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@jraddaoui jraddaoui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

internal/activities/transform_sip.go Show resolved Hide resolved
internal/activities/validate_structure.go Outdated Show resolved Hide resolved
internal/activities/validate_structure.go Outdated Show resolved Hide resolved
internal/pips/pips.go Outdated Show resolved Hide resolved
internal/sip/sip.go Show resolved Hide resolved
@djjuhasz djjuhasz force-pushed the dev/issue-58-stop-appending-premis-suffix branch from 519e0ef to a43ff55 Compare October 22, 2024 20:00
@djjuhasz djjuhasz requested a review from jraddaoui October 23, 2024 20:49
Fixes #58

Digitized (Vecteur) SIPs are the only type of SIP that contain a
Prozess_Digitalisierung_PREMIS.xml file, and they will only ever
contain a single dossier.  Because digitized SIPs only have a single
dossier that contains a single Prozess_Digitalisierung_PREMIS.xml file
there's no need to rename the file in the PIP to avoid name clashes.

Changes:
- Update the SIP identification logic - if a SIP has a
  Prozess_Digitalisierung_PREMIS.xml file then it must be a digitized
  SIP
- Add a SIP validation check to confirm that digitized SIPs only contain
  a single dossier
- Remove the SIP transformation code that renamed the
  Prozess_Digitalisierung_PREMIS.xml file
@djjuhasz djjuhasz force-pushed the dev/issue-58-stop-appending-premis-suffix branch from 4729f7d to bc5d806 Compare October 23, 2024 20:50
@djjuhasz djjuhasz merged commit de095ea into main Oct 24, 2024
9 checks passed
@djjuhasz djjuhasz deleted the dev/issue-58-stop-appending-premis-suffix branch October 24, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants