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

Fix SIP type identification (#79) #84

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Fix SIP type identification (#79) #84

merged 1 commit into from
Nov 18, 2024

Conversation

mcantelon
Copy link
Contributor

@mcantelon mcantelon commented Nov 16, 2024

Fixed and updated SIP type identification logic and updated related tests.

@mcantelon mcantelon marked this pull request as draft November 16, 2024 22:39
Copy link

codecov bot commented Nov 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.14%. Comparing base (2cf4cdc) to head (5d924d9).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
+ Coverage   59.79%   60.14%   +0.34%     
==========================================
  Files          29       29              
  Lines        1965     1982      +17     
==========================================
+ Hits         1175     1192      +17     
+ Misses        697      696       -1     
- Partials       93       94       +1     

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


🚨 Try these New Features:

@mcantelon mcantelon force-pushed the dev/sip-identify branch 3 times, most recently from 288f53e to 7b024c6 Compare November 17, 2024 00:41
@mcantelon mcantelon changed the title WIP: Dev/sip identify Fix SIP type identification (#79) Nov 17, 2024
@mcantelon mcantelon marked this pull request as ready for review November 17, 2024 00:42
@mcantelon
Copy link
Contributor Author

PR to fix/update the SIP type identification: #84

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.

LGTM, thanks @mcantelon!

@@ -38,8 +38,8 @@ func (a *TransformSIP) Execute(ctx context.Context, params *TransformSIPParams)

// Move the Prozess_Digitalisierung_PREMIS.xml file to the PIP metadata
// directory. Prozess_Digitalisierung_PREMIS.xml is only present in
// digitized SIPs, and there can only be one dossier in a digitized SIP.
if params.SIP.Type == enums.SIPTypeDigitizedSIP {
// digitized SIPs/AIPs, and there can only be one dossier in a digitized SIP.
Copy link
Contributor

Choose a reason for hiding this comment

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

SIP/AIP at the end too.

Fixed and updated SIP type identification logic and updated related
tests.
@mcantelon mcantelon merged commit c4a0110 into main Nov 18, 2024
9 checks passed
@mcantelon mcantelon deleted the dev/sip-identify branch November 18, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants