Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Change Log

.. There should always be an "Unreleased" section for changes pending release.

[1.2.1] - 2020-12-17
~~~~~~~~~~~~~~~~~~~~

* Improve monitoring of legacy Waffle class imports. We should watch for "edx_toggles.toggles.internal.waffle.legacy.WaffleSwitch" custom attributes.


[1.2.0] - 2020-11-05
~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion edx_toggles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Library and utilities for feature toggles.
"""

__version__ = '1.2.0'
__version__ = '1.2.1'

default_app_config = 'edx_toggles.apps.TogglesConfig' # pylint: disable=invalid-name
21 changes: 17 additions & 4 deletions edx_toggles/toggles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,21 @@
from .internal.setting_toggle import SettingDictToggle, SettingToggle
from .internal.waffle.legacy import WaffleFlag, WaffleFlagNamespace, WaffleSwitch, WaffleSwitchNamespace


# Create waffle aliases for forward compatibility
LegacyWaffleFlag = WaffleFlag
LegacyWaffleFlagNamespace = WaffleFlagNamespace
LegacyWaffleSwitch = WaffleSwitch
LegacyWaffleSwitchNamespace = WaffleSwitchNamespace
# We create new classes instead of using `LegacyClass = Class` statements
# for better monitoring of legacy class usage.
class LegacyWaffleFlag(WaffleFlag):
pass


class LegacyWaffleFlagNamespace(WaffleFlagNamespace):
pass


class LegacyWaffleSwitch(WaffleSwitch):
pass


class LegacyWaffleSwitchNamespace(WaffleSwitchNamespace):
pass