Page MenuHomePhabricator

Stabilize fatals when a build has a build plan the viewer can't see because of policy restrictions
ClosedPublic

Authored by epriestley on Apr 30 2020, 2:47 PM.
Tags
None
Referenced Files
F15463327: D21194.id50476.diff
Tue, Apr 1, 10:31 PM
F15453778: D21194.id50475.diff
Sat, Mar 29, 2:18 PM
F15451886: D21194.id.diff
Sat, Mar 29, 12:22 AM
F15450876: D21194.id.diff
Fri, Mar 28, 6:45 PM
F15440889: D21194.diff
Wed, Mar 26, 3:15 PM
F15399778: D21194.diff
Mon, Mar 17, 7:35 AM
F15391230: D21194.id50475.diff
Sat, Mar 15, 8:55 AM
F15391020: D21194.diff
Sat, Mar 15, 7:51 AM
Subscribers
Restricted Owners Package

Details

Summary

Ref T13526. Currently, if a build plan is restricted, viewers may fatal when trying to view related builds.

The old behavior allowed them to see the build even if they can not see the build plan. This is sort of incoherent, but try to stabilize things before fixing this.

Test Plan

This is a muddy change.

  • Created a build with a build plan that Alice can't see.
  • As Alice, viewed the build page (restricted before, restricted after); the buildable page (fatal before, works after).
  • Also viewed a revision page (works before and after, but user-reported fatal).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable