Page MenuHomePhabricator

Add Edit/View Policy to Ponder Questions
ClosedPublic

Authored by chad on Aug 4 2015, 10:31 PM.

Details

Reviewers
epriestley
Maniphest Tasks
T3578: Unbeta Ponder
Commits
Restricted Diffusion Commit
rP135d0c9ee7a6: Add Edit/View Policy to Ponder Questions
Summary

Ref T3578, adds ability to set a default edit and view policy for questions. Not sure what to set viewPolicy to ?

Test Plan

Test an old question, edit policy still on myself. Test a new question, see new default.

Diff Detail

Repository
rP Phabricator
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

chad updated this revision to Diff 33309.Aug 4 2015, 10:31 PM
chad retitled this revision from to Add Edit/View Policy to Ponder Questions.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
chad added a task: T3578: Unbeta Ponder.
epriestley accepted this revision.Aug 4 2015, 10:37 PM
epriestley edited edge metadata.
epriestley added inline comments.
resources/sql/autopatches/20150804.ponder.question.2.sql
2–3

For viewPolicy, just set it to the string 'users' to preserve the old behavior:

...
SET viewPolicy = 'users' WHERE viewPolicy = '';
This revision is now accepted and ready to land.Aug 4 2015, 10:37 PM
chad updated this revision to Diff 33310.Aug 4 2015, 10:40 PM
chad edited edge metadata.
  • add default viewPolicy
This revision was automatically updated to reflect the committed changes.