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
F14895445: D21194.id50476.diff
Sun, Feb 9, 9:10 AM
F14895444: D21194.id50475.diff
Sun, Feb 9, 9:10 AM
F14895443: D21194.id.diff
Sun, Feb 9, 9:10 AM
F14895442: D21194.diff
Sun, Feb 9, 9:10 AM
Unknown Object (File)
Sat, Jan 25, 7:26 AM
Unknown Object (File)
Sat, Jan 25, 7:26 AM
Unknown Object (File)
Sat, Jan 25, 7:26 AM
Unknown Object (File)
Sat, Jan 25, 7:25 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
Branch
build1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24290
Build 33460: Run Core Tests
Build 33459: arc lint + arc unit