Page MenuHomePhabricator

Allow diviner books to be permanently destroyed
ClosedPublic

Authored by joshuaspence on Feb 11 2015, 1:03 PM.
Tags
None
Referenced Files
F14057795: D11742.diff
Sun, Nov 17, 6:58 AM
F14036820: D11742.id28308.diff
Sun, Nov 10, 12:17 PM
F14013958: D11742.id.diff
Sat, Nov 2, 8:08 PM
F14006258: D11742.diff
Mon, Oct 28, 4:22 AM
F13995456: D11742.id.diff
Wed, Oct 23, 12:59 PM
F13991840: D11742.diff
Tue, Oct 22, 1:00 PM
F13987615: D11742.id28308.diff
Oct 21 2024, 10:25 AM
F13978538: D11742.diff
Oct 18 2024, 11:42 PM
Subscribers

Details

Summary

Fixes T7182.

Test Plan

Deleted a book with ./bin/remove destroy

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.