Page MenuHomePhabricator

[lib] Deprecate `minimallyEncodeRawThreadInfo`
ClosedPublic

Authored by atul on Thu, Jul 11, 1:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 5, 1:11 AM
Unknown Object (File)
Thu, Aug 1, 10:58 AM
Unknown Object (File)
Mon, Jul 29, 10:22 AM
Unknown Object (File)
Sun, Jul 28, 5:57 PM
Unknown Object (File)
Sun, Jul 28, 1:51 PM
Unknown Object (File)
Sat, Jul 27, 8:28 AM
Unknown Object (File)
Sat, Jul 27, 8:28 AM
Unknown Object (File)
Sat, Jul 27, 8:28 AM
Subscribers

Details

Summary

We want to freeze existing logic for use in migration and rawThreadInfoFromServerThreadInfo while making it clear that it shouldn't be used in the future.


Depends on D12597

Test Plan

Just a rename.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Thu, Jul 11, 1:40 PM
Harbormaster failed remote builds in B30294: Diff 42242!
atul requested review of this revision.Thu, Jul 11, 2:16 PM
ashoat requested changes to this revision.Thu, Jul 11, 5:20 PM

Just two questions:

We want to freeze existing logic for use in migration and rawThreadInfoFromServerThreadInfo while making it clear that it shouldn't be used in the future.

First: is rawThreadInfoFromServerThreadInfo just for the shimming logic that handles old clients?

Second: it looks like there's a Flow error here that doesn't show up in the parent diff. Any context?

This revision now requires changes to proceed.Thu, Jul 11, 5:20 PM

First: is rawThreadInfoFromServerThreadInfo just for the shimming logic that handles old clients?

Yes, so we can construct RawThreadInfo with member permissions for clients that still expect them. We will construct "new" RawThreadInfos by stripping out member permissions using same utility function that'll be used in client migrations.

Second: it looks like there's a Flow error here that doesn't show up in the parent diff. Any context?

Let me check

atul requested review of this revision.Mon, Jul 15, 11:50 AM

Second: it looks like there's a Flow error here that doesn't show up in the parent diff. Any context?

The one flow issue I'm seeing is the following:

f33e9f.png (1×2 px, 1001 KB)

which is resolved in D12755

ashoat requested changes to this revision.Wed, Jul 17, 12:03 PM

Actually I must've gotten confused about the CI. I'm actually not seeing any Flow issues, but there do appear to be ESLint issues.

Can you get this green before you pass back to me?

This revision now requires changes to proceed.Wed, Jul 17, 12:03 PM

update to address ESLint and failing validator test. flow issue(s) still expected.

This revision is now accepted and ready to land.Thu, Jul 18, 10:18 AM

This is purely rename diff, so safe to cherry-pick and land out of order.

This revision was landed with ongoing or failed builds.Thu, Jul 18, 12:21 PM
This revision was automatically updated to reflect the committed changes.