mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 12:42:43 +01:00
f191a66490
Summary: Depends on D19423. Ref T12164. Adds controllers capable of listing and editing `PhabricatorRepositoryIdentity` objects. Starts creating those objects when commits are parsed. Test Plan: Reparsed some revisions, observed objects getting created in the database. Altered some `Identity` objects using the controllers and observed effects in the database. No attempts made to validate behavior under "challenging" author/committer strings. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T12164 Differential Revision: https://secure.phabricator.com/D19429
22 lines
516 B
PHP
22 lines
516 B
PHP
<?php
|
|
|
|
final class DiffusionIdentityListController
|
|
extends DiffusionController {
|
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
return id(new DiffusionRepositoryIdentitySearchEngine())
|
|
->setController($this)
|
|
->buildResponse();
|
|
}
|
|
|
|
protected function buildApplicationCrumbs() {
|
|
$crumbs = parent::buildApplicationCrumbs();
|
|
|
|
id(new PhabricatorRepositoryIdentityEditEngine())
|
|
->setViewer($this->getViewer())
|
|
->addActionToCrumbs($crumbs);
|
|
|
|
return $crumbs;
|
|
}
|
|
|
|
}
|