-
Notifications
You must be signed in to change notification settings - Fork 0
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
Remove SIP path from SIP metadata validation #87
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #87 +/- ##
==========================================
+ Coverage 53.48% 60.20% +6.71%
==========================================
Files 29 29
Lines 2023 1985 -38
==========================================
+ Hits 1082 1195 +113
+ Misses 869 696 -173
- Partials 72 94 +22 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @DanielCosme, just one note to address.
internal/workflow/preprocessing.go
Outdated
result.validationError(ctx, ev, "metadata validation has failed", validateMetadata.Failures) | ||
escapedFailures := make([]string, len(validateMetadata.Failures)) | ||
for _, f := range validateMetadata.Failures { | ||
escapedFailures = append(escapedFailures, strings.ReplaceAll(f, identifySIP.SIP.Path, "")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should remove the initial slash too, so it looks like a relative path. Also for consistency with the changes in #71.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 8ec4c63
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
This MR will remove the absolute path from the
Validate SIP metadata activity
.Continuation of: #59 (comment)
Previously:
Now: