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
would it be possible to send an exception to the error handler when schema validation is enabled but the datafile provided is not valid? current behavior is log error but continue as is.
Thank you @zhammer . Looking into it.
There may be considerations around consistency inside Py sdk as well with other SDKs.
Also how expensive the change would be, also seems like an be an API change.
@zhammer My assumption is that you would like to be informed in real time if datafile validation failed?
Yes, you can set the logger to show the error, but that's not it.
You could use Decide API in the SDK to display reasons. We return null variation and error message in real-time (in reasons when config fails).
For example set options = [DecideOption.INCLUDE_REASONS] and then call reasons on your decision like so decision.reasons.
You should get the error message: 'Optimizely SDK not configured properly yet.'
Would that work?
Changing log error to raising an exception would unfortunately be a breaking change for the API which is a significant task for the moment.
would it be possible to send an exception to the error handler when schema validation is enabled but the datafile provided is not valid? current behavior is log error but continue as is.
python-sdk/optimizely/config_manager.py
Lines 104 to 107 in b6c2c63
The text was updated successfully, but these errors were encountered: