Page MenuHomePhabricator

Raise a tailored error when calling "transaction.search" with empty "phids" constraint
ClosedPublic

Authored by epriestley on Aug 3 2018, 8:04 PM.
Tags
None
Referenced Files
F18820457: D19562.id.diff
Wed, Oct 22, 3:15 PM
F18774573: D19562.diff
Fri, Oct 10, 3:01 PM
F18703871: D19562.id.diff
Sun, Sep 28, 5:20 AM
F18699798: D19562.diff
Sat, Sep 27, 1:43 PM
F18636609: D19562.id46766.diff
Sep 17 2025, 4:48 AM
F18509723: D19562.id.diff
Sep 5 2025, 3:34 AM
F18503074: D19562.diff
Sep 4 2025, 10:50 PM
F18393583: D19562.diff
Aug 29 2025, 9:17 AM
Subscribers
None

Details

Summary

Ref T13164. See PHI725. For real "*.search" methods, parameters get validated and you get an error if you use an empty list as a constraint.

Since "transaction.search" isn't really a normal "*.search" method, it doesn't benefit from this. Just do the check manually for now.

Test Plan

Made transaction.search calls with no constraints (got results); a valid costraint (got fewer results); and an invalid empty constraint (got an exception).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable