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)
Tue, Nov 19, 11:03 AM
Unknown Object (File)
Thu, Nov 14, 11:12 PM
Unknown Object (File)
Sun, Nov 10, 9:36 PM
Unknown Object (File)
Thu, Nov 7, 2:11 AM
Unknown Object (File)
Oct 21 2024, 9:19 PM
Unknown Object (File)
Oct 21 2024, 1:54 AM
Unknown Object (File)
Oct 21 2024, 1:52 AM
Unknown Object (File)
Oct 21 2024, 1:45 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