artefactual-sdps / enduro

A tool to support ingest and automation in digital preservation workflows
https://enduro.readthedocs.io/
Apache License 2.0
4 stars 3 forks source link

Move API upload endpoint to package service #1016

Closed jraddaoui closed 2 months ago

jraddaoui commented 2 months ago

Refs #977.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 47.72727% with 23 lines in your changes missing coverage. Please review.

Project coverage is 53.01%. Comparing base (8aa0da8) to head (2d4c5e4).

Files with missing lines Patch % Lines
cmd/enduro/main.go 0.00% 11 Missing :warning:
internal/package_/upload.go 69.23% 4 Missing and 4 partials :warning:
cmd/enduro-a3m-worker/main.go 0.00% 2 Missing :warning:
cmd/enduro-am-worker/main.go 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1016 +/- ## ========================================== - Coverage 53.13% 53.01% -0.12% ========================================== Files 101 100 -1 Lines 5814 5768 -46 ========================================== - Hits 3089 3058 -31 + Misses 2474 2461 -13 + Partials 251 249 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

jraddaoui commented 2 months ago

This endpoint only proxies the upload to a bucket, the workflow is then triggered like a normal MinIO deposit, if properly configured.