Page MenuHomePhabricator

[lib] Change type of `ThinRawThreadInfo.members` from `MemberInfoWithPermissions` to `MemberInfoSansPermissions`
Needs ReviewPublic

Authored by atul on Thu, Jun 27, 12:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 28, 1:03 AM
Unknown Object (File)
Fri, Jun 28, 1:03 AM
Unknown Object (File)
Fri, Jun 28, 1:03 AM
Subscribers

Details

Reviewers
ashoat
Summary

Start of stack replacing stack that started with D12469.

This diff makes the change to ThinRawThreadInfo.members which intentionally introduces flow issues which will be addressed in the rest of the stack.

Also snuck in stripping out MemberInfo.permissions from test data to reduce flow noise.

We're at 5 flow issues instead of the ~64 we had after D12469. Think this is largely due to stack ending in D12496, but will check each of the places with flow issues in previous stack to make sure nothing is broken quietly.


Depends on D12554

Test Plan

NA, flow.

This change ONLY changes flow types. We still need to update validators, persisted data, keyserver endpoint, client migrations, etc. which will be handled in subsequent diffs.

Diff Detail

Repository
rCOMM Comm
Branch
july26 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Some reminders to myself from abandoned stack that stack starting with this diff will replace:

https://phab.comm.dev/D12557#356476
https://phab.comm.dev/D12574#356485

  • will need to update validator AND make sure we have validators for previous/new ThinRawThreadInfo.members included in convertClientDBThreadInfoToRawThreadInfo to avoid breaking clients. This is crucial because convertClientDBThreadInfoToRawThreadInfo is run once upon client upgrade before migrations in persist.jsare run. This is what broke things with removing .isDefault migration.
Harbormaster returned this revision to the author for changes because remote builds failed.Thu, Jun 27, 12:44 PM
Harbormaster failed remote builds in B29967: Diff 41766!
atul requested review of this revision.Thu, Jun 27, 12:45 PM
atul added inline comments.
lib/types/minimally-encoded-thread-permissions-types.js
174

Actual non-test data related change.