Page MenuHomePhabricator

Update gRPC-web generated files
ClosedPublic

Authored by bartek on Jan 8 2024, 2:18 AM.
Tags
None
Referenced Files
F3527480: D10573.diff
Tue, Dec 24, 5:17 AM
Unknown Object (File)
Sun, Dec 15, 6:49 PM
Unknown Object (File)
Sun, Dec 15, 6:49 PM
Unknown Object (File)
Sun, Dec 15, 6:49 PM
Unknown Object (File)
Sun, Dec 15, 6:48 PM
Unknown Object (File)
Sun, Dec 15, 6:48 PM
Unknown Object (File)
Fri, Dec 13, 3:14 AM
Unknown Object (File)
Nov 23 2024, 4:35 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
No Lint Coverage
Unit
No Test Coverage

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

Introduced in D10301

This comment applies to all other GetDeviceList* types introduced below

web/protobufs/identity-auth-structs.cjs.flow
266–278

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

322

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

Renamed in the first diff of this stack

looks so much better!!

web/protobufs/identity-auth-structs.cjs.flow
322

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

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.