-
Notifications
You must be signed in to change notification settings - Fork 0
Implement Flag Change Event System #19
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Add support for notifications when flag values change, allowing applications to react to flag updates in real-time.
Goals
- Event-based notification system
- Support for multiple listeners
- Granular event filtering
Proposed Features
- Flag change events (created, updated, deleted)
- Value change events
- Bulk update events
- Error events
Example Interface
@flaggle.on_flag_change("feature_a")
def handle_feature_change(flag_name: str, old_value: Any, new_value: Any):
print(f"Flag {flag_name} changed from {old_value} to {new_value}")
# Or class-based
class FlagListener:
def on_change(self, flag_name: str, old_value: Any, new_value: Any):
pass
flaggle.add_listener(FlagListener())Acceptance Criteria
- Event system implementation
- Support for multiple listeners
- Filter by flag name/pattern
- Documentation and examples
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request