Merge pull request #4039 from wwitzel3/workflow-channels

Workflow Event Channels Integration
This commit is contained in:
Wayne Witzel III
2016-11-18 14:41:40 -05:00
committed by GitHub
7 changed files with 57 additions and 17 deletions

View File

@@ -215,6 +215,9 @@ export default
if(state.data && state.data.socket && state.data.socket.groups.hasOwnProperty( "ad_hoc_command_events")){
state.data.socket.groups.ad_hoc_command_events = [id];
}
if(state.data && state.data.socket && state.data.socket.groups.hasOwnProperty( "workflow_events")){
state.data.socket.groups.workflow_events = [id];
}
self.subscribe(state);
}
return true;

View File

@@ -18,11 +18,7 @@ export default {
data: {
socket: {
"groups":{
"jobs": ["status_changed", "summary"],
// not sure if you're gonna need to use job_events
// or if y'all will come up w/ a new socket group specifically
// for workflows
// "job_events": []
"workflow_events": []
}
}
},