Page MenuHomePhabricator

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

Authored by bartek on Wed, Oct 9, 2:13 AM.
Tags
None
Referenced Files
F2988217: D13655.id45069.diff
Wed, Oct 16, 4:25 PM
F2988216: D13655.id45067.diff
Wed, Oct 16, 4:25 PM
F2988208: D13655.id45005.diff
Wed, Oct 16, 4:21 PM
F2987112: D13655.id45089.diff
Wed, Oct 16, 2:33 PM
F2986864: D13655.diff
Wed, Oct 16, 2:26 PM
F2983637: D13655.id45070.diff
Wed, Oct 16, 9:27 AM
F2982748: D13655.id45069.diff
Wed, Oct 16, 5:22 AM
F2982723: D13655.id45005.diff
Wed, Oct 16, 5:02 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.Wed, Oct 9, 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.Thu, Oct 10, 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