-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Make possible to set NULL values using config:set command #15216
Conversation
null
values using config:set
command
What if you want to use the actual word "NULL", that won't be possible anymore? (I realize almost nobody will want to do this, but still ...) In the n98/magerun2 project, they fixed it with an extra flag |
Yes, I know about the flag on n98. It’s just that I do not think anybody will need “NULL” as a string. I also think that it should be avoided, so I did not want to provide this option. If you think that it is needed, I wouldn’t have any problem to add it. |
I also believe almost nobody will need "NULL" as a string, but still, one day, someone will probably need it for some obscure reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like that we should use capsed NULL
here and that string behavior is changed.
Can we have a separate command like bin/magento config:unset <path>
or bin/magento config:set-null <path>
maybe?
Closing due to inactivity. Feel free to reach me out anytime later if you wish to continue work on this pull request and it will be reopened. |
Hi @orlangur I’d rather go for the option If you use config propagation, you need to assign |
unset seems best. Makes sure nobody will mistake it. |
Raised in Slack. |
Hi @jalogut, among maintainers the preferred version is |
Description
Currently is not possible to set
null
values usingconfig:set
command. That is needed, if we want to overwritecore_config_data
values usingconfig.php
andenv.php
files.This PR makes that possible by replacing "NULL" param value with
null
before the value is saved into the config files.Manual testing scenarios
bin/magento config:set <path> NULL
null
. However, the current status is that "NULL" string is saved instead.Contribution checklist