Page MenuHomePhabricator

Update Legalpad for EditEngine
ClosedPublic

Authored by chad on May 10 2017, 12:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 7, 12:39 AM
Unknown Object (File)
Fri, Jan 3, 2:46 AM
Unknown Object (File)
Mon, Dec 30, 9:51 PM
Unknown Object (File)
Wed, Dec 25, 8:08 AM
Unknown Object (File)
Tue, Dec 17, 7:43 AM
Unknown Object (File)
Tue, Dec 17, 6:31 AM
Unknown Object (File)
Mon, Dec 16, 7:59 PM
Unknown Object (File)
Sun, Dec 15, 11:19 AM
Subscribers

Details

Summary

Updates Legalpad to use EditEngine, paving the way for transaction comments. Spooky.

Test Plan
  • New Document
    • Require signing, Corp - see fail
    • Require signing, Noone - see fail
    • Require signing, Ind - get asked to sign
  • Edit Document

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The best way to do the "transaction X depends on transaction Y" stuff is currently Editor->validateAllTransactions(), PhabricatorCalendarEventEditor has an example. Rest of this looks good.

src/applications/legalpad/application/PhabricatorLegalpadApplication.php
58–59

Can we nuke this route now?

This revision now requires changes to proceed.May 10 2017, 3:27 PM
chad edited edge metadata.
  • add final transaction validations
chad edited the test plan for this revision. (Show Details)
epriestley added inline comments.
src/applications/legalpad/editor/LegalpadDocumentEditEngine.php
109–127

(Weird indentation?)

src/applications/legalpad/xaction/LegalpadDocumentRequireSignatureTransaction.php
61

Probably "invaliderror" is a better fit here.

This revision is now accepted and ready to land.May 10 2017, 9:56 PM
This revision was automatically updated to reflect the committed changes.