Page MenuHomePhabricator

Call didRejectResult() in DiffusionCommitQuery properly
ClosedPublic

Authored by epriestley on Jun 14 2015, 10:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 22, 12:08 AM
Unknown Object (File)
Thu, Dec 12, 11:59 AM
Unknown Object (File)
Sun, Dec 8, 3:08 AM
Unknown Object (File)
Thu, Dec 5, 11:10 AM
Unknown Object (File)
Thu, Dec 5, 4:37 AM
Unknown Object (File)
Wed, Dec 4, 4:48 AM
Unknown Object (File)
Nov 29 2024, 10:53 PM
Unknown Object (File)
Nov 26 2024, 2:57 PM
Subscribers

Details

Summary

Ref T4345. This error is per object-type in the query implementations, not a mail/permissions issue.

Without didRejectResult(), we can't distinguish between "restricted" and "unknown" for objects filtered by willFilterPage().

  • Call didRejectResult() on commits.
  • Make didRejectResult() handle both existing policy exceptions and filtering.
  • Recover from partial objects (like commits) which are missing attached data required to figure out policies.
Test Plan

Saw "Restricted Diffusion Commit" instead of "Unknown Object (Diffusion Commit)" when viewing nonvisible commit handle in Maniphest.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Call didRejectResult() in DiffusionCommitQuery properly.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: btrahan, joshuaspence.
This revision is now accepted and ready to land.Jun 14 2015, 10:31 PM
This revision was automatically updated to reflect the committed changes.