Page MenuHomePhabricator

Reuse more transaction construction code in bulk editor
ClosedPublic

Authored by epriestley on Jan 19 2018, 1:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 3, 2:17 AM
Unknown Object (File)
Jul 10 2026, 11:31 AM
Unknown Object (File)
Apr 15 2026, 6:52 PM
Unknown Object (File)
Apr 13 2026, 11:40 PM
Unknown Object (File)
Apr 11 2026, 3:56 PM
Unknown Object (File)
Apr 11 2026, 4:38 AM
Unknown Object (File)
Mar 28 2026, 3:15 AM
Unknown Object (File)
Mar 13 2026, 5:53 AM
Subscribers
None

Details

Summary

Ref T13025. Currently, the bulk editor takes an HTTP request and emits a list of "raw" transactions (simple dictionaries). This goes into the job queue, and the background job builds a real transaction.

However, the logic to turn an HTTP request into a raw transaction is ending up with some duplication, since we generally already have logic to turn an HTTP request into a full object.

Instead: build real objects first, then serialize them to dictionaries. Send those to the job queue, rebuild them into objects again, and we end up in the same spot with a little less code duplication.

Finally, delete the mostly-copied code.

Test Plan

Used bulk editor to add comments, projects, and rename tasks.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable