HomePhabricator
Diffusion Comm 8485f33ca0cc

[lib] Introduce `MinimallyEncodedMemberInfo` and validator

Description

[lib] Introduce MinimallyEncodedMemberInfo and validator

Summary:
MemberInfo type w/ permissions as string instread of ThreadPermissions.

Next diffs:

  • Introduce MinimallyEncodedRawThreadInfo
  • Higher level utilities for translating back/forth from RawThreadInfo <=> MinimallyEncodedRawThreadInfo. Found this to be cleaner API than encoding/decoding RawThreadInfo.currentUser.permissions and RawThreadInfo.members[memberID].permissions "manually" a bunch of different places.
  • Native refactoring + migrations
  • Web refactoring
  • Flipping the switch

Depends on D9734

Test Plan: Unit tests, will be tested implicitly in subsequent diffs as well.

Reviewers: ashoat, ginsu, tomek, rohan

Reviewed By: ashoat

Subscribers: wyilio

Differential Revision: https://phab.comm.dev/D9735

Details

Provenance
atulAuthored on Nov 6 2023, 2:03 PM
Reviewer
ashoat
Differential Revision
D9735: [lib] Introduce `MinimallyEncodedMemberInfo` and validator
Parents
rCOMMdc24c82f4bb8: [lib] Introduce `MinimallyEncodedThreadCurrentUserInfo` and validator
Branches
Unknown
Tags
Unknown