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)
Thu, Nov 28, 11:40 AM
Unknown Object (File)
Wed, Nov 27, 3:51 AM
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
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
Branch
xaction1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20565
Build 27935: Run Core Tests
Build 27934: arc lint + arc unit