Homec4science

Policy - do proper policy queries when updating owners packages in commit…

Authored by Bob Trahan <btrahan@phacility.com> on Feb 3 2015, 20:55.

Description

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

Details

Committed
Bob Trahan <btrahan@phacility.com>Feb 3 2015, 20:55
Pushed
aubortJan 31 2017, 17:16
Branches
Unknown
Tags
Unknown
[cURL/7] (http://10.0.1.35:80/api/diffusion.commitparentsquery) <CURLE_COULDNT_CONNECT> The cURL library raised an error while making a request. You may be able to find more information about this error (error code: 7) on the cURL site: http://curl.haxx.se/libcurl/c/libcurl-errors.html#CURLECOULDNTCONNECT[cURL/7] (http://10.0.1.35:80/api/diffusion.mergedcommitsquery) <CURLE_COULDNT_CONNECT> The cURL library raised an error while making a request. You may be able to find more information about this error (error code: 7) on the cURL site: http://curl.haxx.se/libcurl/c/libcurl-errors.html#CURLECOULDNTCONNECT

Event Timeline

Bob Trahan <btrahan@phacility.com> committed rPH026e3794831f: Policy - do proper policy queries when updating owners packages in commit… (authored by Bob Trahan <btrahan@phacility.com>).Feb 3 2015, 20:55