Page MenuHomePhabricator

[lib] Update `clientThreadFrozenDueToBlock` and `getMinimallyEncodedCurrentUser` signatures to include `communityThreadInfo`
AbandonedPublic

Authored by atul on Mar 13 2024, 12:35 PM.
Tags
None
Referenced Files
F3181745: D11317.diff
Fri, Nov 8, 6:46 AM
Unknown Object (File)
Tue, Oct 15, 8:18 PM
Unknown Object (File)
Tue, Oct 15, 8:17 PM
Unknown Object (File)
Tue, Oct 15, 8:17 PM
Unknown Object (File)
Sep 4 2024, 2:54 PM
Unknown Object (File)
Sep 4 2024, 2:54 PM
Unknown Object (File)
Sep 4 2024, 2:54 PM
Unknown Object (File)
Sep 2 2024, 6:28 AM
Subscribers

Details

Summary

Updating clientThreadFrozenDueToBlock and getMinimallyEncodedCurrentUser signatures to include communityThreadInfo.

Next step is to update useExistingThreadInfoFinder (which is easy) and threadInfoFromRawThreadInfo (which is hard and requires recursively updating all the callsites).

Will begin with useExistingThreadInfoFinder, and then update threadInfoFromRawThreadInfo and callsites, etc and proceed.


Depends on D11311

Test Plan

flow + careful reading

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Mar 13 2024, 8:56 PM

It seems like changing the code to check permissions in communityThreadInfo is a huge amount of work. Could you explain why we have to do this and what are the consequences of not doing it?

This revision is now accepted and ready to land.Mar 19 2024, 5:11 AM

We ended up going with a very different approach from this stack. Abandoning to tidy things up.