Page MenuHomePhabricator

[lib] Add types for Blob Service requests and responses
ClosedPublic

Authored by bartek on Oct 9 2024, 2:13 AM.
Tags
None
Referenced Files
F3520966: D13655.id45005.diff
Mon, Dec 23, 1:53 AM
F3520503: D13655.id45088.diff
Mon, Dec 23, 12:34 AM
F3518537: D13655.id45067.diff
Sun, Dec 22, 8:14 PM
Unknown Object (File)
Thu, Dec 19, 11:35 AM
Unknown Object (File)
Thu, Dec 19, 11:34 AM
Unknown Object (File)
Thu, Dec 19, 11:34 AM
Unknown Object (File)
Fri, Nov 29, 7:07 AM
Unknown Object (File)
Fri, Nov 29, 5:03 AM
Subscribers

Details

Summary

Added types and validators for Blob service batch-holder endpoints.
They directly correspond to Rust structs from D13617.

Depends on D13654

Test Plan

flow. Their usage is tested in the next diff

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.Oct 9 2024, 3:01 AM
  1. I don't think we need validators for requests, those won't be used
  2. Can you reference the Rust file here, and This file in Rust codebase? Similar to code here.
lib/types/blob-service-types.js
7–10 ↗(On Diff #45005)

there are couple places in codebase where we can use this type now

43 ↗(On Diff #45005)

I think we should match Rust

This revision is now accepted and ready to land.Oct 10 2024, 2:47 AM
lib/types/blob-service-types.js
7–10 ↗(On Diff #45005)

looks like it's done in D13656.
Thinking of deduplicating BlobHashAndHolder type too,

  1. I don't think we need validators for requests, those won't be used

Okay so I'll remove them

  1. Can you reference the Rust file here, and This file in Rust codebase? Similar to code here.

Good idea, I'll do that!

lib/types/blob-service-types.js
7–10 ↗(On Diff #45005)

Thinking of deduplicating BlobHashAndHolder type too,

Yeah, if not done now, it's tracked in ENG-9422

Address feedback: Rename types, remove request validators, add comments