1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 10:52:41 +01:00
phorge-phorge/src/applications/differential/customfield
epriestley b62420e6e4 Separate reading object values out of didSetObject() in CustomField
Summary:
Ref T3886. Broadly, fields break down into two types right now: fields which store data on the object (like `DifferentialTitleField`) and fields which store data in custom field storage.

The former type generally reads data from the object into local storage prior to editing, then writes it back afterward. Currently, this happens in `didSetObject()`.

However, now that we load and set objects from ApplicationTransactionQuery, we'll do this extra read-field-values on view interfaces too. There, it's unnecessary and sometimes throws data-attached exceptions.

Instead, separate these concepts, and do all the read-from-object / read-from-storage in one logical chunk, separate from `didSetObject()`.

Test Plan:
  - Edited Differential revision.
  - Edited Maniphest task.
  - Edited Project.
  - Edited user profile.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3886

Differential Revision: https://secure.phabricator.com/D8299
2014-02-21 14:44:01 -08:00
..
DifferentialCoreCustomField.php Separate reading object values out of didSetObject() in CustomField 2014-02-21 14:44:01 -08:00
DifferentialCustomField.php Implement "Pro" version of revision editor, with one field 2014-02-18 16:32:55 -08:00
DifferentialEditPolicyField.php Implement Differential subscribers as a CustomField 2014-02-21 11:54:08 -08:00
DifferentialRepositoryField.php Implement Differential subscribers as a CustomField 2014-02-21 11:54:08 -08:00
DifferentialReviewersField.php Implement a "Reviewers" CustomField 2014-02-21 11:54:32 -08:00
DifferentialSubscribersField.php Implement Differential subscribers as a CustomField 2014-02-21 11:54:08 -08:00
DifferentialSummaryField.php Implement "Repository" as a new-style CustomField in Differential 2014-02-21 11:53:37 -08:00
DifferentialTestPlanField.php Implement "Repository" as a new-style CustomField in Differential 2014-02-21 11:53:37 -08:00
DifferentialTitleField.php Implement "Repository" as a new-style CustomField in Differential 2014-02-21 11:53:37 -08:00
DifferentialViewPolicyField.php Implement Differential subscribers as a CustomField 2014-02-21 11:54:08 -08:00