Sistema de Apoio ao Processo Legislativo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1.3 KiB

Types

Waffle supports three types of feature flippers:

Flags

"Flags can be used to enable a feature for specific users, groups, users meeting certain criteria (such as being authenticated, or superusers) or a certain percentage of visitors."

https://waffle.readthedocs.io/en/stable/types/flag.html

Switches

"Switches are simple booleans: they are on or off, for everyone, all the time. They do not require a request object and can be used in other contexts, such as management commands and tasks."

Enabling/Disabling via CLI (example):

./manage.py waffle_switch SOLR_SWITCH on --create

./manage.py waffle_switch SOLR_SWITCH off --create

https://waffle.readthedocs.io/en/stable/types/switch.html

Samples

"Samples are on a given percentage of the time. They do not require a request object and can be used in other contexts, such as management commands and tasks."

Liga e desliga baseado em amostragem aleatória.

https://waffle.readthedocs.io/en/stable/types/sample.html

Reference