Skip to content

Instantly share code, notes, and snippets.

@peter-wilkins
Created August 16, 2018 19:48
Show Gist options
  • Save peter-wilkins/cd5fe634da375bf518c60a080039615b to your computer and use it in GitHub Desktop.
Save peter-wilkins/cd5fe634da375bf518c60a080039615b to your computer and use it in GitHub Desktop.
# cannot deploy when no companies or topics are staged
# cannot deploy when no companies or topics are staged
# deployCompaniesAndTopics only when atleast on topic is staged
# cannot start reprocessing job if one is already running
#
Reprocessing
Ready
deployCompaniesOnly -> Running
deployCompaniesAndTopics -> Running
Running
setBatchLive -> Ready
setBatchFailed -> Ready
# there is always a candidate and a live
# can only approve candidate if no staged or deploying
Deployments&
candidate
approve -> staged
staged
deployCompaniesOnly -> deploying
deployCompaniesAndTopics -> deploying
abandon -> abandoned
deploying
setBatchLive -> live
setBatchFailed -> staged
live
setBatchLive -> old
old
abandoned
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment