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

Remove SIP path from SIP metadata validation #87

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

DanielCosme
Copy link
Contributor

@DanielCosme DanielCosme commented Nov 20, 2024

This MR will remove the absolute path from the Validate SIP metadata activity.

Continuation of: #59 (comment)

Previously:
image

Now:
image

Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.20%. Comparing base (7dd47ca) to head (8ace35d).
Report is 9 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@DanielCosme DanielCosme self-assigned this Nov 20, 2024
Copy link
Contributor

@djjuhasz djjuhasz left a 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 Show resolved Hide resolved
internal/workflow/preprocessing_test.go Outdated Show resolved Hide resolved
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, ""))
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 8ec4c63

Copy link
Contributor

@djjuhasz djjuhasz left a comment

Choose a reason for hiding this comment

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

👍🏻

@DanielCosme DanielCosme merged commit 8893cde into main Nov 20, 2024
9 checks passed
@DanielCosme DanielCosme deleted the remove-sip-path-from-failure branch November 20, 2024 19:24
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.

3 participants