Page MenuHomePhabricator

Reduce surface area of DifferentialComment API
ClosedPublic

Authored by epriestley on Oct 21 2013, 3:11 PM.
Tags
None
Referenced Files
F13978816: D7375.id.diff
Oct 19 2024, 1:06 AM
F13975592: D7375.diff
Oct 18 2024, 10:51 AM
F13966788: D7375.id16595.diff
Oct 16 2024, 9:39 AM
Unknown Object (File)
Sep 29 2024, 6:18 AM
Unknown Object (File)
Sep 29 2024, 6:18 AM
Unknown Object (File)
Sep 26 2024, 1:58 PM
Unknown Object (File)
Sep 22 2024, 10:54 PM
Unknown Object (File)
Sep 20 2024, 12:16 AM
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.