{"record":{"id":"13cddf80865c5fa9","repo":"phacility/phabricator","slug":"you-can-not-bucket-results-by-required-action-with","errorCode":null,"errorMessage":"You can not bucket results by required action without specifying \"Responsible Users\".","messagePattern":"You can not bucket results by required action without specifying \"Responsible Users\"\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/differential/query/DifferentialRevisionRequiredActionResultBucket.php","lineNumber":25,"sourceCode":"\n  const KEY_MUSTREVIEW = 'must-review';\n  const KEY_SHOULDREVIEW = 'should-review';\n\n  private $objects;\n\n  public function getResultBucketName() {\n    return pht('Bucket by Required Action');\n  }\n\n  protected function buildResultGroups(\n    PhabricatorSavedQuery $query,\n    array $objects) {\n\n    $this->objects = $objects;\n\n    $phids = $query->getEvaluatedParameter('responsiblePHIDs');\n    if (!$phids) {\n      throw new Exception(\n        pht(\n          'You can not bucket results by required action without '.\n          'specifying \"Responsible Users\".'));\n    }\n    $phids = array_fuse($phids);\n\n    // Before continuing, throw away any revisions which responsible users\n    // have explicitly resigned from.\n\n    // The goal is to allow users to resign from revisions they don't want to\n    // review to get these revisions off their dashboard, even if there are\n    // other project or package reviewers which they have authority over.\n    $this->filterResigned($phids);\n\n    // We also throw away draft revisions which you aren't the author of.\n    $this->filterOtherDrafts($phids);\n\n    $groups = array();","sourceCodeStart":7,"sourceCodeEnd":43,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/query/DifferentialRevisionRequiredActionResultBucket.php#L7-L43","documentation":"Parameter guard in DifferentialRevisionRequiredActionResultBucket::buildResultGroups: the 'Bucket by Required Action' result bucket classifies revisions by what action each responsible user must take, so the saved query must include a non-empty 'Responsible Users' (responsiblePHIDs) parameter. When getEvaluatedParameter('responsiblePHIDs') returns nothing, the bucket has no users to compute required actions for and refuses to build groups.","triggerScenarios":"Thrown at src/applications/differential/query/DifferentialRevisionRequiredActionResultBucket.php:25 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add one or more users to the 'Responsible Users' field of the saved query before bucketing by required action","If using a dashboard panel or saved query, edit the query definition to include responsiblePHIDs","Choose a different result bucket (e.g. bucket by status or priority) if per-user action classification is not needed"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}