Page MenuHomePhabricator

[lib] Introduce `MinimallyEncodedMemberInfo` and validator
ClosedPublic

Authored by atul on Nov 6 2023, 11:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 4:36 PM
Unknown Object (File)
Mon, Dec 16, 4:15 PM
Unknown Object (File)
Mon, Dec 16, 4:15 PM
Unknown Object (File)
Mon, Dec 16, 4:15 PM
Unknown Object (File)
Mon, Dec 16, 4:15 PM
Unknown Object (File)
Mon, Dec 16, 4:15 PM
Unknown Object (File)
Mon, Dec 16, 4:11 PM
Unknown Object (File)
Wed, Dec 11, 3:21 PM
Subscribers

Details

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.

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D9735 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul published this revision for review.Nov 6 2023, 11:36 AM
This revision is now accepted and ready to land.Nov 6 2023, 11:41 AM
This revision was landed with ongoing or failed builds.Nov 6 2023, 2:10 PM
This revision was automatically updated to reflect the committed changes.