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)
Jun 5 2025, 10:15 PM
Unknown Object (File)
Jun 5 2025, 10:54 AM
Unknown Object (File)
Jun 4 2025, 5:18 AM
Unknown Object (File)
Jun 3 2025, 1:13 PM
Unknown Object (File)
May 9 2025, 2:35 AM
Unknown Object (File)
May 5 2025, 8:51 PM
Unknown Object (File)
Apr 25 2025, 3:16 PM
Unknown Object (File)
Apr 22 2025, 10: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
Branch
xaction1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20565
Build 27935: Run Core Tests
Build 27934: arc lint + arc unit