-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adiciona feature flag lib e refatora Solr para usá-la
- Loading branch information
1 parent
6c00245
commit b495a35
Showing
21 changed files
with
125 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
### 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 | ||
* Documentation: https://waffle.readthedocs.io/ | ||
* Managing from CLI: https://waffle.readthedocs.io/en/stable/usage/cli.html | ||
* Templates: https://waffle.readthedocs.io/en/stable/usage/templates.html | ||
* Views: https://waffle.readthedocs.io/en/stable/usage/views.html | ||
* Decorators: https://waffle.readthedocs.io/en/stable/usage/decorators.html | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
sapl/base/migrations/0059_remove_appconfig_sapl_as_sapn.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.2.28 on 2023-11-27 00:23 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('base', '0058_appconfig_ordenacao_pesquisa_materia'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='appconfig', | ||
name='sapl_as_sapn', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.