-
-
Notifications
You must be signed in to change notification settings - Fork 81
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config does not load optional settings from defaults #3197
Comments
The easiest solution would be to remove the |
The change would not make the class load the values from storage, but from the override defaults and saving would still have the same problem. |
Could you elaborate? I don't see how this would prevent loading values from storage. The if statement just prevents loading settings from the defaults-override that are not previously defined as far as I can see. |
It doesn't prevent it, but also doesn't replace it. I would simply use a totally different class if you need some other behavior. The |
I don't need any other behavior. I think it is a little bit confusing to have an option in the configs listed (in this example |
The if statement looks like I put it in deliberately for some reason. You're right that the JavaDocs comment doesn't match the behavior, though. You can change it, but you should check if the samples all still work as they currently do. |
If an option is passed via the defaults object, but not defined in the initial config, it is not loaded.
For example:
contentFilesUrlPlayerOverride
is not defined in the initial config. It is impossible to pass this setting in the defaults object passed in the constructor.H5P-Nodejs-library/packages/h5p-server/src/implementation/H5PConfig.ts
Line 19 in 647e578
The text was updated successfully, but these errors were encountered: