Page MenuHomePhabricator

Update gRPC-web generated files
ClosedPublic

Authored by bartek on Jan 8 2024, 2:18 AM.
Tags
None
Referenced Files
F3234747: D10573.id35354.diff
Tue, Nov 12, 10:22 PM
Unknown Object (File)
Thu, Nov 7, 1:09 AM
Unknown Object (File)
Wed, Nov 6, 5:59 AM
Unknown Object (File)
Sat, Nov 2, 10:27 AM
Unknown Object (File)
Fri, Oct 25, 12:30 AM
Unknown Object (File)
Fri, Oct 18, 6:38 AM
Unknown Object (File)
Fri, Oct 18, 6:38 AM
Unknown Object (File)
Fri, Oct 18, 6:38 AM
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.