Page MenuHomePhabricator

Improve Conduit type handling for `*.edit` endpoints
ClosedPublic

Authored by epriestley on Dec 16 2015, 1:52 PM.
Tags
None
Referenced Files
F14065102: D14796.diff
Tue, Nov 19, 3:00 AM
F14052847: D14796.diff
Fri, Nov 15, 11:10 AM
F14050902: D14796.id35781.diff
Thu, Nov 14, 9:21 PM
F14039328: D14796.diff
Mon, Nov 11, 5:12 AM
F14026892: D14796.id35781.diff
Fri, Nov 8, 3:22 AM
F14024249: D14796.diff
Thu, Nov 7, 7:29 AM
F14013557: D14796.id35781.diff
Sat, Nov 2, 7:43 AM
F14012688: D14796.id35777.diff
Fri, Nov 1, 3:02 PM
Subscribers

Details

Summary

Ref T9964. Three goals here:

  • Make it easier to supply Conduit documentation.
  • Make automatic documentation for *.edit endpoints more complete, particularly for custom fields.
  • Allow type resolution via Conduit types, so you can pass ["alincoln"] to "subscribers" instead of needing to use PHIDs.
Test Plan
  • Viewed and used all search and edit endpoints, including custom fields.
  • Used parameter type resolution to set subscribers to user "dog" instead of "PHID-USER-whatever".
  • Viewed HTTP parameter documentation.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Improve Conduit type handling for `*.edit` endpoints.
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.Dec 16 2015, 4:34 PM
This revision was automatically updated to reflect the committed changes.
avivey added inline comments.
src/applications/conduit/parametertype/ConduitWildParameterType.php
4

Does this intentionally extends ListParameterType, or is it a typo (Doesn't support maps/objects...)?

Typo, a few things improperly extended List via copy/pasta errors. I think most of them have been cleaned up, but they're unintentional unless the subtype actually makes sense as a list subtype.

D15881 for last of these fixes, I think.