Page MenuHomePhabricator

Show when objects have a non-default policy
ClosedPublic

Authored by epriestley on Jun 22 2015, 3:28 AM.
Tags
None
Referenced Files
F13084085: D13387.diff
Wed, Apr 24, 10:48 PM
Unknown Object (File)
Tue, Apr 9, 9:59 PM
Unknown Object (File)
Tue, Apr 9, 8:29 PM
Unknown Object (File)
Mon, Apr 1, 4:07 AM
Unknown Object (File)
Thu, Mar 28, 8:27 PM
Unknown Object (File)
Thu, Mar 28, 5:17 PM
Unknown Object (File)
Wed, Mar 27, 3:40 PM
Unknown Object (File)
Mar 25 2024, 6:36 PM
Tokens
"Like" token, awarded by joshuaspence.

Details

Summary

Fixes T6787. I'm kind of cheating a little bit here by not unifying default selection with initializeNew(...) methods, but I figure we can let this settle for a bit and then go do that later. It's pretty minor.

Since we're not doing templates I kind of want to swap the 'template' key to 'type' so maybe I'll do that too at some point.

@chad, freel free to change these, I was just trying to make them pretty obvious. I do think it's good for them to stand out, but my approach is probably a bit inconsistent/heavy-handed in the new design.

Test Plan

Screen Shot 2015-06-21 at 8.17.08 PM.png (955×1 px, 177 KB)

Screen Shot 2015-06-21 at 8.16.51 PM.png (955×1 px, 215 KB)

Screen Shot 2015-06-21 at 8.16.46 PM.png (955×1 px, 215 KB)

Screen Shot 2015-06-21 at 8.19.58 PM.png (973×1 px, 183 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Show when objects have a non-default policy.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
epriestley added a subscriber: chad.

Colors are:

  • no color: default policy
  • green: weaker (less restrictive) policy
  • red: stronger (more restrictive) policy
  • orange: different policy which isn't categorically weaker or stronger (e.g., "memers of X" instead of "members of Y").

I wonder if the composed sentence I think you previously suggested might be worth exploring.

This Open task is viewable by All Users in the OPS space.

I hesitate to pursue that because it's routinely untrue. The sentence for Differential is:

This revision needs review, and is visible to all users in the X space who also have permission to view repository Y (which is visible to all members of P in the Z space), and also visible to the author, even if they can not see the repository, unless they can't see objects in the space.

This revision needs review, and is visible to all users in the X space who also have permission to view repository Y (which is visible to all members of P in the Z space), and also visible to the author, even if they can not see the repository, unless they can't see objects in the space.

Mordac The Prevented would love possible implications here... So with arrival of spaces is it possible to define policy combination using broad groups that would eneble for example only one person to perform any action at all (tghat is - view)?

btrahan edited edge metadata.

Another sentence-y idea inline.

src/view/phui/PHUIHeaderView.php
362–368

Maybe we can do a tool tip with the text like "The current policy $curr_policy is more restrictive than the default of $default_policy."? Basically, not sure if the colors need more details or some quick explanation and the tooltip can maybe do both. Also, maybe there's some corner cases where the defaults are pretty aggressive and the tool tip helps with any user confusion there?

This revision is now accepted and ready to land.Jun 22 2015, 5:38 PM
src/view/phui/PHUIHeaderView.php
362–368

Let me try just adding a callout to the explanation dialog.

epriestley edited edge metadata.
  • Explain stronger/weaker vs default policies in dialog.
  • Remove some (although not all) of the template code.
This revision was automatically updated to reflect the committed changes.