Page MenuHomePhabricator

Reduce surface area of DifferentialComment API
ClosedPublic

Authored by epriestley on Oct 21 2013, 3:11 PM.
Tags
None
Referenced Files
F15417408: D7375.diff
Thu, Mar 20, 4:57 PM
F15396258: D7375.id16594.diff
Sun, Mar 16, 1:01 PM
Unknown Object (File)
Mon, Mar 3, 5:59 AM
Unknown Object (File)
Thu, Feb 27, 3:21 AM
Unknown Object (File)
Thu, Feb 27, 3:21 AM
Unknown Object (File)
Wed, Feb 26, 6:26 AM
Unknown Object (File)
Tue, Feb 25, 2:33 PM
Unknown Object (File)
Tue, Feb 25, 2:24 PM
Subscribers

Details

Reviewers
btrahan
Maniphest Tasks
Restricted Maniphest Task
T2222: Implement ApplicationTransactions in Differential
Commits
Restricted Diffusion Commit
rP32dd8af9e5d5: Reduce surface area of DifferentialComment API
Summary

Ref T2222. Shrink the API to make it easier to move this object's storage to ApplicationTransactions.

Fixes T3415. This moves the "Summary" and "Test Plan" into the property list, and thereby fixes all the attribution problems associated with commandeering, creating a revision from another user's diff, etc.

Test Plan

Browsed several revisions.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley updated this revision to Unknown Object (????).Oct 21 2013, 4:56 PM

Also reduce setRevisionID() to setRevision() and clean up some obsolete remarkup cache code.

This looks tons cleaner. :D

src/applications/differential/storage/DifferentialComment.php
23โ€“25

even though it isn't used, i'd assume we'd have a getRevision method as well.

src/applications/differential/storage/DifferentialComment.php
23โ€“25

Oh, it's just so I can do the:

- $this->revisionID = $revision->getID();
+ $this->revisionPHID = $revision->getPHID();

...thing when I swap the storage to ApplicationTransactions. Once that works I'll get rid of it.