]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Improve SummaryService and TaskWrapperService 22906/head
authorTiago Melo <tmelo@suse.com>
Thu, 5 Jul 2018 16:45:32 +0000 (17:45 +0100)
committerTiago Melo <tspmelo@gmail.com>
Wed, 25 Jul 2018 14:46:29 +0000 (15:46 +0100)
commit5ee689feb6d4dfcf8949cc8f79c84d6ddeb81a31
tree3e45568273e9933ee60f2470c1a58d64bd7bbe42
parentf0f8a0a3db363880f2a9ea88aa60636ff83b4cda
mgr/dashboard: Improve SummaryService and TaskWrapperService

When you create a new task, and it stays running, it will be added automatically
to the summary data.

This will allows for us to deal with it more quickly, by subscribing
to the summaryService, and removes the need to pass a runningTasks array
between services.

Added 3 new methods to SummaryService.

Signed-off-by: Tiago Melo <tmelo@suse.com>
12 files changed:
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/about/about.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/about/about.component.ts
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/task-manager/task-manager.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/summary.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/summary.service.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-manager.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-manager.service.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-wrapper.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-wrapper.service.ts