Page MenuHomePhabricator

Allow diviner books to be permanently destroyed
ClosedPublic

Authored by joshuaspence on Feb 11 2015, 1:03 PM.
Tags
None
Referenced Files
F13097604: D11742.diff
Fri, Apr 26, 1:34 AM
F13097317: D11742.id28307.diff
Thu, Apr 25, 10:54 PM
F13097315: D11742.id28299.diff
Thu, Apr 25, 10:54 PM
Unknown Object (File)
Thu, Apr 25, 1:44 AM
Unknown Object (File)
Mon, Apr 22, 4:08 PM
Unknown Object (File)
Sat, Apr 20, 2:55 AM
Unknown Object (File)
Thu, Apr 11, 1:19 PM
Unknown Object (File)
Sat, Apr 6, 8:08 AM
Subscribers

Details

Summary

Fixes T7182.

Test Plan

Deleted a book with ./bin/remove destroy

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4460
Build 4474: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Allow diviner books to be permanently destroyed.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

One inline.

src/applications/diviner/storage/DivinerLiveBook.php
104

I don't think destroyObjectPermanently() should print to the console.

You can use --trace to monitor status, and it automatically keeps a log of deleted objects (bin/remove log).

If you want a progress bar specifically, we could add a destroyObjects(...) and let the Engine build the bar when run via a console? I'm generally onboard with bin/remove destroy being more verbose, but I think the Engine should be responsible, not the destroyObject...() implementations.

This revision is now accepted and ready to land.Feb 11 2015, 1:47 PM
src/applications/diviner/storage/DivinerLiveBook.php
104

Oh yep, I had intended to remove this. Basically, destroying a book took a lot longer than I had expected (maybe 5 minutes).

joshuaspence edited edge metadata.

Remove console logging

This revision was automatically updated to reflect the committed changes.