Page MenuHomePhabricator

Have Badges use getMostOpenPolicy for View
ClosedPublic

Authored by chad on Jul 24 2015, 4:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 24, 3:46 AM
Unknown Object (File)
Fri, Dec 20, 10:13 PM
Unknown Object (File)
Fri, Dec 20, 5:15 PM
Unknown Object (File)
Fri, Dec 6, 9:11 AM
Unknown Object (File)
Thu, Dec 5, 11:42 AM
Unknown Object (File)
Thu, Dec 5, 10:41 AM
Unknown Object (File)
Nov 27 2024, 1:21 PM
Unknown Object (File)
Nov 26 2024, 1:29 AM
Subscribers

Details

Summary

Fixes T8938. Sets by default for new badges, getMostOpenPolicy. Removes ability to edit viewPolicy.

Test Plan

Create a new badge, see its public, assign it, log out, still able to view it.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Have Badges use getMostOpenPolicy for View.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added reviewers: epriestley, btrahan.
btrahan edited edge metadata.

In theory, there may exist some badges that got set to some restrictive view policy in the wild. I think you'd want to write a migration script to migrate these things to more open, except that's kind of funky. Anyway, just an FYI you probably already knew I guess...

This revision is now accepted and ready to land.Jul 24 2015, 5:44 PM

We should also drop the column in the table at some point.

Yeah, nothing reads it anymore. Policy infrastructure doesn't depend on it existing because some objects don't have an editable view policy.

This revision was automatically updated to reflect the committed changes.