Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13955963
D17427.id41906.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17427.id41906.diff
View Options
diff --git a/src/applications/owners/query/PhabricatorOwnersPackageQuery.php b/src/applications/owners/query/PhabricatorOwnersPackageQuery.php
--- a/src/applications/owners/query/PhabricatorOwnersPackageQuery.php
+++ b/src/applications/owners/query/PhabricatorOwnersPackageQuery.php
@@ -129,7 +129,16 @@
}
if ($this->controlMap) {
- $this->controlResults += mpull($packages, null, 'getID');
+ foreach ($packages as $package) {
+ // If this package is archived, it's no longer a controlling package
+ // for any path. In particular, it can not force active packages with
+ // weak dominion to give up control.
+ if ($package->isArchived()) {
+ continue;
+ }
+
+ $this->controlResults[$package->getID()] = $package;
+ }
}
return $packages;
@@ -361,13 +370,6 @@
$best_match = null;
$include = false;
- // If this package is archived, it's no longer a controlling package
- // for the given path. In particular, it can not force active packages
- // with weak dominion to give up control.
- if ($package->isArchived()) {
- continue;
- }
-
$repository_paths = $package->getPathsForRepository($repository_phid);
foreach ($repository_paths as $package_path) {
$strength = $package_path->getPathMatchStrength(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 15 2024, 3:44 AM (4 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6711196
Default Alt Text
D17427.id41906.diff (1 KB)
Attached To
Mode
D17427: Filter archived packages out of the "controlling packages" query earlier
Attached
Detach File
Event Timeline
Log In to Comment