The GitHub Actions job "Required Checks" on 
texera.git/refactor/file-service-s3-presign-trait has succeeded.
Run started by GitHub user Ma77Ball (triggered by Ma77Ball).

Head commit for run:
640cdab8f7fea8d4d5cba54f99456355a90f9c1b / Matthew Ball <[email protected]>
Share presign + multipart endpoints via ResourceUploadSupport trait

ResourceUploadSupport is a trait in the file-service resource package that 
holds the presigned-download and multipart-upload delegations every versioned 
file resource exposes. It declares one abstract member, resourceStorage, a 
ResourceStorage descriptor whose four jOOQ record type parameters are left as 
Record-bounded wildcards because the ResourceUploadService methods abstract 
over them and use them only to type the descriptor argument. On top of that 
member it defines generatePresignedResponse, listMultipartUploads, 
initMultipartUpload, finishMultipartUpload, and abortMultipartUpload, each a 
one-line forward to the matching ResourceUploadService method with 
resourceStorage passed as the storage descriptor.

DatasetResource and ModelResource mix in the trait and supply resourceStorage 
as ResourceStorage.Dataset and ResourceStorage.Model; the override omits its 
result type so it infers the concrete storage type, which is a subtype of the 
trait's wildcard-bounded member. Their JAX-RS endpoint methods 
(presign-download, public-presign-download, multipart-upload, and the multipart 
part upload) are unchanged and now call the inherited helpers, so routing and 
the resource-level annotations stay on the concrete classes.

The five helper bodies previously existed once in each resource and differed 
only in naming ResourceStorage.Dataset vs ResourceStorage.Model, so both copies 
are removed in favor of the single implementation on the trait.

Report URL: https://github.com/apache/texera/actions/runs/43513563637

With regards,
GitHub Actions via GitBox

Reply via email to