Page MenuHomePhabricator

Reduce surface area of DifferentialComment API
ClosedPublic

Authored by epriestley on Oct 21 2013, 3:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 5:43 AM
Unknown Object (File)
Tue, Dec 17, 4:24 AM
Unknown Object (File)
Tue, Dec 10, 8:59 PM
Unknown Object (File)
Mon, Dec 9, 4:19 AM
Unknown Object (File)
Mon, Dec 9, 4:19 AM
Unknown Object (File)
Sun, Dec 8, 7:25 AM
Unknown Object (File)
Fri, Dec 6, 6:19 AM
Unknown Object (File)
Tue, Dec 3, 2:48 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.