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
We ran into an issue where we were dropping assignment events in our downstream logger due to unexpected subject attribute values. If a None value is passed into subject attributes, they come back as empty tuple in the AssignmentLogger such as user_id: () which does not conform to the expected type of subject_attributes: Dict[str, Union[str, int, float, bool, None]],.
We ran into an issue where we were dropping assignment events in our downstream logger due to unexpected subject attribute values. If a None value is passed into subject attributes, they come back as empty tuple in the
AssignmentLogger
such asuser_id: ()
which does not conform to the expected type ofsubject_attributes: Dict[str, Union[str, int, float, bool, None]],
.We ended up adding:
The issue seems to be in https://github.com/Eppo-exp/eppo-multiplatform/blob/main/eppo_core/src/pyo3.rs#L28. The rust
Option<T>
whenNone
is converted back to python uses().to_object(py)
which will create an empty tuple object instead ofpy.None()
Example
Tested on
eppo-sever-sdk
4.0.0
and4.2.4
With
AssignmentLogger
Country comes back as
()
The text was updated successfully, but these errors were encountered: