Improve event filtering
Contents (#673)
IMPORTANT: There are 2 breaking changes.
New features
- Add
dictionary_product
utility function
Enhancements
- 💥 BREAKING CHANGE: Disable event validation in
EventReplayer
by default - 💥 BREAKING CHANGE: Enable filtering by multiple event kinds in
get_events
- Enable excluding multiple event kinds in
get_events
- Use all non-question events for question redelivery check in flask app
- Add ability to skip handling logs containing certain text in
AbstractEventHandler
and subclasses - Return outside of
ThreadPoolExecutor
context managers
Upgrade instructions
💥 Disable event validation in `EventReplayer` by default
Set validate_events=True
in the EventReplayer
constructor to retain the previous behaviour.
💥 Enable filtering by multiple event kinds in `get_events`
To filter by one event kind as before, use kinds=[event_kind]
instead of kind=event_kind
.