-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some settings can recieve null
as a value while they shouln't
#2929
Comments
null
as a value while they shouln't null
as a value while they shouln't
Thanks for the report @bidoubiwa |
We will probably want to clarify the behaviour when assigning |
discussed with @gmourier -> the spec should be followed, not modified. |
@curquiza I can work on this if I know which settings are affected? |
Hello @Pranav-yadav We don't know exactly which ones are concerned, this issue involves also a small investigation by testing all the settings |
Ohh! Then, I shall come to this after tackling easier ones... hahaha |
Are we sure about this? Considering it as a bug and fixing this issue would forbid the user to reset any settings under
poke @gmourier |
Discussed with @Kerollmops, @ManyTheFish and @gmourier:
|
Ok, thanks for the return @dureuill I close this issue then! |
Sorry, I reopen because investigation needed before closing, sorry! |
Checked the behavior. It is consistent at any level of settings, with a We can close this task. |
Describe the bug
Some settings, I only have two examples but there are probably more, can receive the value
null
during an update while it should raise an error.Example: See spec
Upon receiving
null
as a value, they are reset to their default valueTo Reproduce
Steps to reproduce the behavior:
{ typoTolerance: { enabled: false }}
false
as a value{ typoTolerance: { enabled: null }}
true
Expected behavior
Should follow the spec, either the spec should change or the behavior.
Meilisearch version: v0.29.1
The text was updated successfully, but these errors were encountered: