Homec4science

Roughly generate transaction-oriented API methods from EditEngines

Authored by epriestley <git@epriestley.com> on Nov 3 2015, 17:45.

Description

Roughly generate transaction-oriented API methods from EditEngines

Summary:
Ref T5873. Ref T9132. This is really rough and feels pretty flimsy at the edges (missing validation, generality, modularity, clean error handling, etc) but gets us most of the way toward generating plausible "whatever.edit" Conduit API methods from EditEngines.

These methods are full-power methods which can do everything the edit form can, automatically support the same range of operations, and update when new fields are added.

Test Plan:

  • Used new paste.edit to create a new Paste.
  • Used new paste.edit to update an existing paste.
  • Applied a variety of different transactions.
  • Hit a reasonable set of errors.

{F941144}

{F941145}

{F941146}

{F941147}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T5873, T9132

Differential Revision: https://secure.phabricator.com/D14393

Details

Committed
epriestley <git@epriestley.com>Nov 3 2015, 19:12
Pushed
aubortJan 31 2017, 17:16
Parents
rPH3dec4c7dbdd2: Provide contextual documentation explaining how to prefill ApplicationEditor…
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH5030ba040195: Roughly generate transaction-oriented API methods from EditEngines (authored by epriestley <git@epriestley.com>).Nov 3 2015, 19:12