You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move initialized action callable to private field (mozilla#145)
* Move initialized callable to private field
When we included the initialized callable in a public model field, we ran
into a bug where `jsonable_encoder` couldn't serialzie an action with an
initalized `requests.Session` object.
In this commit, we move the initialized caller to a private field so that it's
excluded during serialization.
* Remove now-irrelevant Config from Action model
* Improve fake Bugzilla action object
- change name
- caller takes and returns a payload
* Make action caller a property
Pydantic does not include properties in the serialized object, which is
exactly what we need in this case.
This commit also changes the callable name to `caller` so we avoid
mirroring the built-in `callable` function
0 commit comments