Skip to content

Instantly share code, notes, and snippets.

@daveduthie
Last active September 1, 2022 07:41
Show Gist options
  • Save daveduthie/924ccbeed24600f7a121d58a21d4d761 to your computer and use it in GitHub Desktop.
Save daveduthie/924ccbeed24600f7a121d58a21d4d761 to your computer and use it in GitHub Desktop.
Feature flag evaluation
Feature flag evaluation
Initial
global_toggle_is_on -> On
global_toggle_is_not_on -> UsualRules
UsualRules
staff_id_matches -> On
user_id_matches -> On
email_matches -> On
else -> Off
On
Off
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