Page MenuHomePhabricator

[lib] Add Blob service utils
ClosedPublic

Authored by bartek on Apr 25 2023, 10:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 5, 8:23 AM
Unknown Object (File)
Sun, Mar 3, 4:16 AM
Unknown Object (File)
Feb 27 2024, 11:00 AM
Unknown Object (File)
Feb 26 2024, 4:32 AM
Unknown Object (File)
Feb 23 2024, 1:02 AM
Unknown Object (File)
Feb 23 2024, 1:02 AM
Unknown Object (File)
Feb 23 2024, 1:01 AM
Unknown Object (File)
Feb 23 2024, 1:01 AM
Subscribers

Details

Summary

As decided in ENG-3534, we will use the comm-blob-service:// URI prefix for BLob service hosted media. This diff adds some utilities that will be used later to deal with these URIs.

Also added the Blob service config to lib/facts directory, inspired by the lib/facts/feature-flags.js.

Test Plan

Did some console.log to ensure they're working. These functions will be used and better tested in further diffs

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.Apr 25 2023, 11:34 AM
This revision is now accepted and ready to land.Apr 25 2023, 12:38 PM

Rebase. Added utils and constants for HTTP endpoints

lib/utils/blob-service.js
32 ↗(On Diff #25804)

Always good to make input parameters read-only

This revision was automatically updated to reflect the committed changes.