mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-22 19:49:02 +01:00
Summary: Ref T13249. See PHI1059. This allows "locked" in `maniphest.statuses` to specify that either "comments" are locked (current behavior, advisory, overridable by users with edit permission, e.g. for calming discussion on a contentious issue or putting a guard rail on things); or "edits" are locked (hard lock, only task owner can edit things). Roughly, "comments" is a soft/advisory lock. "edits" is a hard/strict lock. (I think both types of locks have reasonable use cases, which is why I'm not just making locks stronger across the board.) When "edits" are locked: - The edit policy looks like "no one" to normal callers. - In one special case, we sneak the real value through a back channel using PolicyCodex in the specific narrow case that you're editing the object. Otherwise, the policy selector control incorrectly switches to "No One". - We also have to do a little more validation around applying a mixture of status + owner transactions that could leave the task uneditable. For now, I'm allowing you to reassign a hard-locked task to someone else. If you get this wrong, we can end up in a state where no one can edit the task. If this is an issue, we could respond in various ways: prevent these edits; prevent assigning to disabled users; provide a `bin/task reassign`; uh maybe have a quorum convene? Test Plan: - Defined "Soft Locked" and "Hard Locked" statues. - "Hard Locked" a task, hit errors (trying to unassign myself, trying to hard lock an unassigned task). - Saw nice new policy guidance icon in header. {F6210362} Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13249 Differential Revision: https://secure.phabricator.com/D20165 |
||
---|---|---|
.. | ||
button | ||
calendar | ||
object-item | ||
workboards | ||
phui-action-list.css | ||
phui-action-panel.css | ||
phui-badge.css | ||
phui-basic-nav-view.css | ||
phui-big-info-view.css | ||
phui-box.css | ||
phui-bulk-editor.css | ||
phui-chart.css | ||
phui-cms.css | ||
phui-comment-form.css | ||
phui-comment-panel.css | ||
phui-crumbs-view.css | ||
phui-curtain-view.css | ||
phui-document-pro.css | ||
phui-document-summary.css | ||
phui-document.css | ||
phui-feed-story.css | ||
phui-fontkit.css | ||
phui-form-view.css | ||
phui-form.css | ||
phui-head-thing.css | ||
phui-header-view.css | ||
phui-hovercard.css | ||
phui-icon-set-selector.css | ||
phui-icon.css | ||
phui-image-mask.css | ||
phui-info-view.css | ||
phui-invisible-character-view.css | ||
phui-left-right.css | ||
phui-lightbox.css | ||
phui-list.css | ||
phui-object-box.css | ||
phui-pager.css | ||
phui-pinboard-view.css | ||
phui-property-list-view.css | ||
phui-remarkup-preview.css | ||
phui-segment-bar-view.css | ||
phui-spacing.css | ||
phui-status.css | ||
phui-tag-view.css | ||
phui-timeline-view.css | ||
phui-two-column-view.css |