Page MenuHomePhabricator

Consolidate transaction generation in EditType objects
ClosedPublic

Authored by epriestley on Nov 30 2015, 4:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 7:43 AM
Unknown Object (File)
Tue, Apr 9, 12:40 AM
Unknown Object (File)
Wed, Mar 27, 10:30 PM
Unknown Object (File)
Mar 5 2024, 4:08 AM
Unknown Object (File)
Mar 5 2024, 4:08 AM
Unknown Object (File)
Mar 5 2024, 4:08 AM
Unknown Object (File)
Mar 5 2024, 4:08 AM
Unknown Object (File)
Feb 20 2024, 2:37 AM
Subscribers
None

Details

Summary

Ref T9132. This is a bit more cleanup to make adding CustomField support easier.

Right now, both EditField and EditType can actually generate a transaction. This doesn't matter too much in practice today, but gets a little more complicated a couple of diffs from now with CustomField stuff.

Instead, always use EditType to generate the transaction. In the future, this should give us less total code and make more things work cleanly by default.

Test Plan

Used web UI and Conduit to make various edits to pastes, including doing race-condition tests on "Projects".

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Consolidate transaction generation in EditType objects.
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.Nov 30 2015, 4:42 PM
This revision was automatically updated to reflect the committed changes.