]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Fix duplicate tasks
authorTiago Melo <tmelo@suse.com>
Mon, 5 Nov 2018 11:39:29 +0000 (11:39 +0000)
committerTiago Melo <tmelo@suse.com>
Mon, 5 Nov 2018 12:31:34 +0000 (12:31 +0000)
commitd6b057bdcd6481b0babd5c5747bb86f9778fcedb
treec3623ccd851dd654953c886ca9f6ca7570dafce5
parent8931f8cd1443719a04fcf2d76f654f8e606222e4
mgr/dashboard: Fix duplicate tasks

In certain situations a new task is already in the current summary before we
manually push it to the running task list.
Since we were not checking that, at the end of the operation we would have 2
entries for the same task and that would be displayed in the UI.

Signed-off-by: Tiago Melo <tmelo@suse.com>
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