Page MenuHomePhabricator

[lib] Extract function to download blob
ClosedPublic

Authored by bartek on Nov 18 2024, 6:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 11:22 PM
Unknown Object (File)
Mon, Dec 16, 12:38 PM
Unknown Object (File)
Mon, Dec 16, 2:22 AM
Unknown Object (File)
Mon, Dec 16, 2:22 AM
Unknown Object (File)
Sat, Dec 14, 3:01 PM
Unknown Object (File)
Tue, Dec 10, 4:59 AM
Unknown Object (File)
Mon, Dec 9, 5:14 PM
Unknown Object (File)
Mon, Dec 9, 2:01 AM
Subscribers

Details

Summary

Preparation for ENG-9526.
Replaced direct calls of fetch() with a dedicated function. It makes it easier to handle specific response code for invalid CSAT.

Test Plan

Flow, eslint, manual testing

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Nov 21 2024, 5:15 AM
This revision is now accepted and ready to land.Nov 21 2024, 11:25 AM
ashoat added inline comments.
lib/utils/blob-service.js
92 ↗(On Diff #45924)

Inputs should (usually) be read-only

lib/utils/blob-service.js
92 ↗(On Diff #45924)

They're intentionally not read-only because fetch doesn't accept them this way,
Util function createDefaultHTTPRequestHeaders() also returns them as mutable for this reason

lib/utils/blob-service.js
92 ↗(On Diff #45924)

Thanks for explaining!

This revision was automatically updated to reflect the committed changes.