Fredzqm/long delete cli (#977)

* make database-remove.js do recursively chunked delets

* make concurrent delete requests

* fixed exceptions, add pending and in progress to status

* limit max concurrency

* add print=silent

* refactor into database/remove.js

* add logging for prefetching

* use waiting map

* clean up map and handle known bug

* use queue

* remove feature flag and hardcode concurrency and retry

* revert to use utils.reject

* remove TODO for bug, since it is fixed

* move Helper class into DatabaseRemove file

* add tests for Remote

* rebase and fix import

* convert to remove.spec.ts and remove.ts

* handle comments

* extract an interface for RemoveRemote
This commit is contained in:
Qinmao Zhang
2018-11-09 16:31:45 -08:00
committed by GitHub
parent 370e5e5743
commit 8fb44491f9
6 changed files with 528 additions and 26 deletions

View File

@@ -108,7 +108,9 @@
"@types/glob": "^7.1.1",
"@types/lodash": "^4.14.118",
"@types/mocha": "^5.2.5",
"@types/nock": "^9.3.0",
"@types/node": "^10.12.0",
"@types/request": "^2.48.1",
"@types/sinon": "^5.0.5",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",