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
Unknown Object (File)
Fri, Nov 15, 8:01 AM
Unknown Object (File)
Fri, Nov 15, 4:59 AM
Unknown Object (File)
Thu, Nov 14, 10:02 PM
Unknown Object (File)
Thu, Nov 14, 7:03 PM
Unknown Object (File)
Thu, Nov 14, 7:00 PM
Unknown Object (File)
Thu, Nov 14, 6:55 PM
Unknown Object (File)
Thu, Nov 14, 3:54 PM
Unknown Object (File)
Sun, Nov 10, 7:53 PM
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
No Lint Coverage
Unit
No Test Coverage

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

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

43

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

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

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