Page MenuHomePhabricator

Introduce idxv(), like idx()
ClosedPublic

Authored by epriestley on Feb 25 2016, 4:39 PM.
Tags
None
Referenced Files
F13135241: D15347.diff
Thu, May 2, 7:45 AM
Unknown Object (File)
Thu, Apr 25, 8:43 PM
Unknown Object (File)
Fri, Apr 19, 4:15 PM
Unknown Object (File)
Sat, Apr 6, 11:41 AM
Unknown Object (File)
Apr 1 2024, 6:52 PM
Unknown Object (File)
Mar 20 2024, 12:40 AM
Unknown Object (File)
Mar 5 2024, 9:24 AM
Unknown Object (File)
Mar 5 2024, 9:24 AM
Subscribers
None
Tokens
"Mountain of Wealth" token, awarded by yelirekim.

Details

Summary

Ref T10449. The new Conduit APIs are more powerful/flexible, but also more annoying to read data from since things are buried several levels deep.

Introduce idxv() to make it easier to do $conduit_result['data']['attachments']['fields']['name'] and similar safely without checking every single value.

Test Plan

See other diffs associated with T10449.

Diff Detail

Repository
rPHU libphutil
Branch
idxv
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/utils/utils.php:1220XHP45PHP Compatibility
Errorsrc/utils/utils.php:1220XHP45PHP Compatibility
Unit
Tests Passed
Build Status
Buildable 10847
Build 13373: Run Core Tests
Build 13372: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Introduce idxv(), like idx().
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Feb 25 2016, 4:58 PM
This revision was automatically updated to reflect the committed changes.