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
F14809629: D19562.id46766.diff
Sun, Jan 26, 7:46 PM
Unknown Object (File)
Sat, Jan 25, 1:50 AM
Unknown Object (File)
Sat, Jan 25, 1:50 AM
Unknown Object (File)
Sat, Jan 25, 1:50 AM
Unknown Object (File)
Thu, Jan 23, 5:56 AM
Unknown Object (File)
Tue, Jan 21, 3:34 PM
Unknown Object (File)
Tue, Jan 21, 3:07 PM
Unknown Object (File)
Tue, Jan 21, 12:33 PM
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