Page MenuHomePhabricator

Fix "Any Owner" and "No Owners" searches in Maniphest
ClosedPublic

Authored by epriestley on May 9 2018, 8:01 PM.
Tags
None
Referenced Files
F15544829: D19440.diff
Sat, Apr 26, 7:12 AM
F15457441: D19440.diff
Sun, Mar 30, 4:48 PM
F15446338: D19440.diff
Mar 27 2025, 6:30 PM
F15437141: D19440.id46501.diff
Mar 25 2025, 5:53 PM
F15434764: D19440.id46494.diff
Mar 25 2025, 5:14 AM
F15431697: D19440.id.diff
Mar 24 2025, 1:59 PM
F15430125: D19440.id46494.diff
Mar 24 2025, 5:48 AM
F15425980: D19440.diff
Mar 23 2025, 6:47 AM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/maniphest-home-page-crash-after-d19417/1445/3. These special-token-only searches currently end up populating an empty ownerPHIDs, which fatals after the stricter check in D19417.

Make the fatal on withConstraint(array()) explicit and only set the PHID constraint if we have some PHIDs left.

Test Plan

Searched for "No Owner", "Any Owner", an actual owner, "No Owner + actual user".

Diff Detail

Repository
rP Phabricator
Branch
xsearch1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20302
Build 27564: Run Core Tests
Build 27563: arc lint + arc unit