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
Unknown Object (File)
Fri, Dec 20, 8:25 PM
Unknown Object (File)
Thu, Dec 19, 8:08 PM
Unknown Object (File)
Fri, Dec 13, 12:09 AM
Unknown Object (File)
Thu, Dec 12, 12:38 AM
Unknown Object (File)
Mon, Dec 9, 10:26 PM
Unknown Object (File)
Mon, Dec 2, 3:23 AM
Unknown Object (File)
Thu, Nov 28, 11:40 AM
Unknown Object (File)
Nov 27 2024, 3:51 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