Backport new /_active_tasks API
authorRobert Newson <robert.newson@cloudant.com>
Wed, 14 Nov 2012 19:32:23 +0000 (19:32 +0000)
committerRobert Newson <robert.newson@cloudant.com>
Thu, 15 Nov 2012 11:23:46 +0000 (11:23 +0000)
commit19017b3612b4567ced3b8ac9cfe816e6cf80e0f8
treea0ffdab1271fb3ffd0c95b22340c7f10c5e98e53
parentbf4d46be7037ddea375bdaf2bab067e29f2c423f
Backport new /_active_tasks API

Improved _active_tasks API

Tasks are now free to set any properties they wish (as an
Erlang proplist). Different tasks can have different properties
and the status string doesn't exist anymore - instead client
applications can build it using more granular properties from
_active_tasks. Some of these properties are:

1) "progress" (an integer percentage, for all tasks)
2) "database" (for compactions and indexer tasks)
3) "design_document" (for indexer and view compaction tasks)
4) "source" and "target" (for replications)
5) "docs_read", "docs_written", "doc_write_failures",
   "missing_revs_found", "missing_revs_checked", "source_seq",
   "checkpointed_source_seq" and "continuous" for replications

BugzID: 14269

Conflicts:
apps/couch/src/couch_db_updater.erl
apps/couch/src/couch_rep.erl
apps/couch/src/couch_task_status.erl
apps/couch/src/couch_view_compactor.erl
apps/couch/src/couch_view_updater.erl
apps/couch/src/couch_db_updater.erl
apps/couch/src/couch_rep.erl
apps/couch/src/couch_task_status.erl
apps/couch/src/couch_view_compactor.erl
apps/couch/src/couch_view_updater.erl
apps/couch/test/etap/090-task-status.t
rel/overlay/share/www/status.html