Page MenuHomePhabricator

Update gRPC-web generated files
ClosedPublic

Authored by bartek on Jan 8 2024, 2:18 AM.
Tags
None
Referenced Files
F2154480: D10573.id35419.diff
Sun, Jun 30, 7:21 PM
F2154440: D10573.id35351.diff
Sun, Jun 30, 7:17 PM
F2149822: D10573.id35419.diff
Sun, Jun 30, 8:55 AM
Unknown Object (File)
Sat, Jun 29, 9:43 AM
Unknown Object (File)
Fri, Jun 28, 3:11 PM
Unknown Object (File)
Wed, Jun 26, 4:00 PM
Unknown Object (File)
Wed, Jun 26, 2:04 PM
Unknown Object (File)
Mon, Jun 24, 7:59 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
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.