Page MenuHomePhabricator

[lib] Add blobServiceUpload upload action
ClosedPublic

Authored by patryk on Sep 12 2023, 1:53 PM.
Tags
None
Referenced Files
F2003995: D9157.id30992.diff
Wed, Jun 12, 11:19 PM
Unknown Object (File)
Sat, Jun 8, 9:11 AM
Unknown Object (File)
May 13 2024, 4:01 AM
Unknown Object (File)
May 13 2024, 4:01 AM
Unknown Object (File)
May 13 2024, 4:01 AM
Unknown Object (File)
May 13 2024, 4:01 AM
Unknown Object (File)
May 13 2024, 4:01 AM
Unknown Object (File)
May 13 2024, 4:01 AM
Subscribers

Details

Summary

This diff introduces new upload action for blob service uploads.

Depends on D9154.

Test Plan

Tested later in the stack.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

patryk held this revision as a draft.
patryk edited the test plan for this revision. (Show Details)

I'm not sure what's wrong about the uuid dependency (failed CI). Perhaps the wrong version is hoisted, which is strange

lib/actions/upload-actions.js
128 ↗(On Diff #31027)

arguably we could name it blobSource or blobInput, but I don't have strong preference

bartek requested changes to this revision.Sep 18 2023, 5:11 AM

Requesting changes to fix failing CI - most likely wrong uuid version is being resolved, try the yarn why uuid command to confirm.

lib/utils/blob-service-upload.js
18 ↗(On Diff #31027)

A good thing would be to destructure options to avoid repeatitions

const { timeout, onProgress, abortHandler } = options ?? {};

// ...
if (timeout) { ... }
This revision now requires changes to proceed.Sep 18 2023, 5:11 AM
This revision is now accepted and ready to land.Sep 20 2023, 3:15 AM