What I tried to do: As an admin of a quite small Phabricator instance, I wanted to put a widget for our new, non-dev users to see recent tasks from the project they're working on in Phabricator to make the learning curve a little less steep. As I can't use Spaces to install a dashboard for particular users (I can only install a dashboard for myself or for everybody), I installed it for everybody and set their little widget's view policy to "Members of Project X", not wanting other users to have an empty widget on their home screen. As I'm a member of that project, I didn't realise what happens when you do that until another admin tried to use Phabricator and sent me the following screenshot.
What it resulted in:
All other users were greeted by this beauty:
While I do realise this is mostly my fault, I really don't think this is expected behaviour as there's no point in having a Can View policy on widgets if changing it results in the dashboard crashing miserably.
Reproduction steps
- Create a project and add yourself as a member
- Create a Maniphest search widget on a dashboard and set the Can View policy to the project members.
- Install the dashboard for all users
- Log in using a user account that's not a project member
- You get an error instead of a dashboard.
Version info
phabricator 74a0e5cd7930ac06013ed6fafc4fd96e7730b40c (Sat, Nov 19) arcanist e17fe43ca3fe6dc6dd0b5ce056f56310ea1d3d51 (Oct 22 2016) phutil b4f866bd75ec138397a16337bc5d326e586a6276 (Sat, Nov 19)
Not the latest, but the changelogs don't say anything about dashboard widgets. I can update if it's necessary.