1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 19:32:40 +01:00
phorge-phorge/src/applications/diffusion
epriestley 2fbc65e396 Call didRejectResult() in DiffusionCommitQuery properly
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.

Reviewers: btrahan, joshuaspence

Reviewed By: joshuaspence

Subscribers: epriestley

Maniphest Tasks: T4345

Differential Revision: https://secure.phabricator.com/D13289
2015-06-14 15:35:32 -07:00
..
application Add a "template" parameter to application default policies 2015-06-11 13:25:30 -07:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
conduit phtize all the things 2015-05-22 21:16:39 +10:00
config Improve UX for Diffusion mail fields 2015-05-25 07:18:48 -07:00
controller Rename PassphraseCredentialType subclasses for consistency 2015-06-14 14:11:55 +10:00
data phtize all the things 2015-05-22 21:16:39 +10:00
doorkeeper Partially modernize Doorkeeper/Asana bridge 2014-10-01 07:09:34 -07:00
edge Fix reverting commit language 2015-06-01 09:54:30 +10:00
engine phtize all the things 2015-05-22 21:16:39 +10:00
events Migrate Differential revision edges to use modern EdgeType subclasses 2015-01-01 15:07:03 +11:00
exception phtize all the things 2015-05-22 21:16:39 +10:00
herald Make ACTION_NOTHING a "standard" action in Herald 2015-06-08 10:30:09 -07:00
panel Add "Mailing List" users 2015-06-03 18:42:33 -07:00
protocol phtize all the things 2015-05-22 21:16:39 +10:00
query Call didRejectResult() in DiffusionCommitQuery properly 2015-06-14 15:35:32 -07:00
remarkup make repo callsigns optional 2015-01-01 08:07:26 -08:00
request phtize all the things 2015-05-22 21:16:39 +10:00
response Allow Phabricator to serve Mercurial repositories over HTTP 2013-11-06 18:00:42 -08:00
ssh phtize all the things 2015-05-22 21:16:39 +10:00
symbol Framework for external symbol search 2015-05-31 07:37:06 -07:00
typeahead Remove arcanist project datasource 2015-05-26 07:10:10 +10:00
view Mark some strings for translation 2015-06-09 23:06:52 +10:00
DiffusionLintSaveRunner.php phtize all the things 2015-05-22 21:16:39 +10:00