Page MenuHomePhabricator

Update gRPC-web generated files
ClosedPublic

Authored by bartek on Jan 8 2024, 2:18 AM.
Tags
None
Referenced Files
F2100546: D10573.id.diff
Mon, Jun 24, 7:59 PM
Unknown Object (File)
Sat, Jun 22, 2:02 PM
Unknown Object (File)
Fri, Jun 14, 6:29 PM
Unknown Object (File)
Mon, Jun 3, 1:43 AM
Unknown Object (File)
May 23 2024, 4:58 AM
Unknown Object (File)
May 20 2024, 4:22 PM
Unknown Object (File)
May 20 2024, 4:22 PM
Unknown Object (File)
May 20 2024, 4:22 PM
Subscribers

Details

Summary

Updated gRPC-web code generated files.

Notable changes:

  • Using snake_case in proto finally generated proper camelCase here ๐ŸŽ‰
  • In D10429 I renamed pre_key -> prekey and PreKey -> Prekey - lots of changes here related to this
  • Left inline comments for other changes

Original TypeScript generated files: https://gist.github.com/barthap/8e92ae580ddc7ba08a45522e46a04eca

Depends on D10430

Test Plan

yarn flow on web, similiar to D10064 (previous update).

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek edited the test plan for this revision. (Show Details)
bartek published this revision for review.Jan 8 2024, 2:49 AM

Unrelated Android CI issue, I'll restart the job once resolved

web/protobufs/identity-auth-client.cjs.flow
83โ€“90 โ†—(On Diff #35351)

Introduced in D10301

This comment applies to all other GetDeviceList* types introduced below

web/protobufs/identity-auth-structs.cjs.flow
266โ€“278 โ†—(On Diff #35351)

This was my oversight in previous update - these methods should've been removed due to changes in D9930

322 โ†—(On Diff #35351)

Doesn't seem to be used anywhere but the TypeScript file had it implemented.
I know this is generated for enums, but I'm not sure why numbers have it too. @varun, do you have any clue?

web/protobufs/identity-unauth-structs.cjs.flow
447 โ†—(On Diff #35351)

Renamed in the first diff of this stack

looks so much better!!

web/protobufs/identity-auth-structs.cjs.flow
322 โ†—(On Diff #35351)

no idea... seems fine to remove

This revision is now accepted and ready to land.Jan 8 2024, 7:21 AM
web/protobufs/identity-auth-structs.cjs.flow
322 โ†—(On Diff #35351)

Removing it might cause more pain than leaving it there... it's good to keep our Flow libdefs minimally different from the auto-generated TypeScript ones

This revision was landed with ongoing or failed builds.Jan 9 2024, 1:23 AM
This revision was automatically updated to reflect the committed changes.