Page MenuHomePhabricator

[lib] Introduce `MinimallyEncodedMemberInfo` and validator
ClosedPublic

Authored by atul on Nov 6 2023, 11:33 AM.
Tags
None
Referenced Files
F3248676: D9735.id32838.diff
Fri, Nov 15, 10:35 AM
F3248655: D9735.id32837.diff
Fri, Nov 15, 10:26 AM
F3248160: D9735.diff
Fri, Nov 15, 8:49 AM
Unknown Object (File)
Sun, Nov 3, 10:56 AM
Unknown Object (File)
Sun, Nov 3, 10:56 AM
Unknown Object (File)
Sun, Nov 3, 10:56 AM
Unknown Object (File)
Sun, Nov 3, 10:56 AM
Unknown Object (File)
Sun, Nov 3, 10:56 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.