Page MenuHomePhabricator

[lib] Deprecate `updateRolesAndPermissions`
AcceptedPublic

Authored by atul on Thu, Jun 27, 2:05 PM.
Tags
None
Referenced Files
F2164534: D12599.diff
Mon, Jul 1, 11:50 PM
F2163588: D12599.diff
Mon, Jul 1, 8:36 PM
Unknown Object (File)
Thu, Jun 27, 8:38 PM
Unknown Object (File)
Thu, Jun 27, 3:46 PM
Unknown Object (File)
Thu, Jun 27, 3:45 PM
Unknown Object (File)
Thu, Jun 27, 3:38 PM
Subscribers

Details

Reviewers
ashoat
Summary

We want to deprecate this function because it's no longer relevant for *RawThreadInfos without member permissions.

We're keeping it around to ensure existing migrations work as expected.


Depends on D12598

Test Plan

This diff is just a rename to make it clear function shouldn't be used in future. Looked at all callsites and ensured there's nothing preventing function from being deprecated.

Diff Detail

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

Event Timeline

atul published this revision for review.Thu, Jun 27, 2:14 PM

Is the idea here that we'll never need to run deprecatedUpdateRolesAndPermissions again when we change permissions, since we're not storing the permissions in the ThreadStore at all?

And that permission checks in the future will be computed on-the-fly based on the user's role in the relevant thread and its ancestors?

This revision is now accepted and ready to land.Mon, Jul 1, 1:05 PM