Skip to content

Commit

Permalink
feat(pipelines): provide observable to surface execution group updates
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed Apr 20, 2017
1 parent 4ad0c94 commit 4ba4c99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {extend} from 'lodash';

import {ICache} from 'core/cache/deckCache.service';
import {VIEW_STATE_CACHE_SERVICE, ViewStateCacheService} from 'core/cache/viewStateCache.service';
import {Subject} from 'rxjs/Subject';

export class ExecutionFilterModel {
// Store count globally for 180 days
Expand All @@ -21,6 +22,7 @@ export class ExecutionFilterModel {
public addTags: () => void;
public clearFilters: () => void;
public applyParamsToUrl: () => void;
public groupsUpdated: Subject<void> = new Subject<void>();

static get $inject(): string[] { return ['$rootScope', 'filterModelService', 'urlParser', 'viewStateCache']; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class ExecutionFilterService {
waypointService.restoreToWaypoint(application.name);
this.executionFilterModel.addTags();
this.lastApplication = application;
executionFilterModel.groupsUpdated.next();
return groups;
}, 25);
}
Expand Down

0 comments on commit 4ba4c99

Please sign in to comment.