Page MenuHomePhabricator

Distinguish between invalid/broken handles and filtered handles
ClosedPublic

Authored by epriestley on Oct 17 2013, 1:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 25, 5:29 AM
Unknown Object (File)
Wed, Dec 25, 5:28 AM
Unknown Object (File)
Wed, Dec 25, 5:28 AM
Unknown Object (File)
Wed, Dec 25, 5:16 AM
Unknown Object (File)
Thu, Dec 19, 6:19 AM
Unknown Object (File)
Thu, Dec 12, 3:05 AM
Unknown Object (File)
Tue, Dec 10, 7:40 PM
Unknown Object (File)
Sun, Dec 8, 5:28 PM
Subscribers

Details

Summary

Ref T603. Currently, we render handles the user doesn't have permission to see in a manner identical to handles that don't exist. This is confusing, and not required by policies (which restrict content, but permit knowledge that an object exists).

Instead, render them in different styles. Bad/invalid objects look like:

Unknown Object (Task)

Restricted objects look like:

  • Restricted Task

...where [o] is the padlock icon.

Test Plan

{F71100}

{F71101}

It's possible this renders weird somewhere, but I wasn't immediately able to find any issues. Yell if you see something.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Maybe we'll need some sort of tool tip some day about why it was restricted?

We could pop the "policy explanation" dialog but it seems pretty heavy and I'm not sure it will be too important. It also discloses PHIDs more easily than you can currently get them, which is probably fine but maybe fishy. And it's a bit more work and slightly more likely to break something. So I'm thinking wait-and-see-if-it-seems-useful.