1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 13:30:55 +01:00
phorge-phorge/src/applications/repository/worker/commitchangeparser
Bob Trahan 026e379483 Policy - do proper policy queries when updating owners packages in commit workers
Summary: Ref T7094. This makes the underlying class take a $user parameter, and then the worker just hands it an omnipotent user. Said underyling class is the benefactor of a small re-factor, dropping one query per-use, though the single query that now remains is policy-based so maybe its a wash or even worse. Still, gotta love one less query.

Test Plan:
a little tricky to test so some extra thought instead

basic acceptance test with `bin/repository reparse --change rValidHashHere`  -- it worked!

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7094

Differential Revision: https://secure.phabricator.com/D11653
2015-02-03 11:55:49 -08:00
..
PhabricatorOwnersPackagePathValidator.php Policy - do proper policy queries when updating owners packages in commit workers 2015-02-03 11:55:49 -08:00
PhabricatorRepositoryCommitChangeParserWorker.php Policy - do proper policy queries when updating owners packages in commit workers 2015-02-03 11:55:49 -08:00
PhabricatorRepositoryGitCommitChangeParserWorker.php Add unit tests for Git change parsers 2014-01-20 13:14:04 -08:00
PhabricatorRepositoryMercurialCommitChangeParserWorker.php Add unit tests for the Mercurial change parser 2014-01-20 13:14:18 -08:00
PhabricatorRepositorySvnCommitChangeParserWorker.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00