Skip to content

Commit

Permalink
[BD-21] Update feature toggle annotation config
Browse files Browse the repository at this point in the history
The following changes are made to the feature toggle annotation config:

1. the `toggle_category` annotation is deprecated
2. the list of `toggle_use_cases` is simplified
3. the `toggle_status` field is deprecated
4. `toggle_expiration_date` was renamed to `toggle_target_removal_date`
5. Add SettingToggle, SettingDictToggle toggle implementations

OEP-17 will be updated correspondingly.
  • Loading branch information
regisb committed Sep 8, 2020
1 parent eba1ecd commit fa1f5b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ Change Log

.. There should always be an "Unreleased" section for changes pending release.
[0.7.0] - 2020-09-07
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Simplify the feature toggle annotation format

[0.6.0] - 2020-08-27
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion code_annotations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Extensible tools for parsing annotations in codebases.
"""

__version__ = '0.6.0'
__version__ = '0.7.0'
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@ annotations:
feature_toggle:
- ".. toggle_name:":
- ".. toggle_implementation:":
choices: [ExperimentWaffleFlag, WaffleFlag, WaffleSwitch, CourseWaffleFlag, ConfigurationModel, DjangoSetting]
choices: [WaffleFlag, WaffleSwitch, CourseWaffleFlag, ExperimentWaffleFlag, SettingToggle, SettingDictToggle, ConfigurationModel, DjangoSetting]
- ".. toggle_default:":
- ".. toggle_description:":
- ".. toggle_category:":
- ".. toggle_use_cases:":
choices: [incremental_release, launch_date, monitored_rollout, graceful_degradation, beta_testing, vip, opt_out, opt_in, open_edx]
choices: [temporary, circuit_breaker, vip, opt_out, opt_in, open_edx]
- ".. toggle_creation_date:":
- ".. toggle_expiration_date:":
- ".. toggle_target_removal_date:":
- ".. toggle_warnings:":
- ".. toggle_tickets:":
- ".. toggle_status:":
extensions:
python:
- py
Expand Down

0 comments on commit fa1f5b0

Please sign in to comment.