-
Notifications
You must be signed in to change notification settings - Fork 180
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
Use separate config properties for adapter enable/disable lists #256
base: master
Are you sure you want to change the base?
Use separate config properties for adapter enable/disable lists #256
Conversation
This builds on #250. I would recommend reviewing that PR before this one. |
This could be considered a breaking change wrt to people's config files, which we should probably care about now. I also think it's a good goal to keep the config and CLI as aligned as possible, so I'm not sure if this is the best approach |
Maybe a leaner solution would be to just (significantly) improve the docs for this parameter |
To expand on the config breakage: The generated json-schema is versioned but this change means we would have to actually implement a method to update it in some way or have read-compatibility with older versions. I envisioned something like the |
As a counterargument: If breaking changes are going to be made, doing so now (before stable 1.0.0 is released) is the best time to do it. |
That's fair. I find this PR's approach of separate enable/disable properties to be much more intuitive than the current syntax, so my preference would be:
That said, I recognize that this is largely a matter of personal preference. In the end the call is yours to make. |
I do wonder if there's an existing Crate that provides some of that functionality. But I agree that everything related to the config versioning is low priority at least until 1.0.0 is released. |
@phiresky What are your thoughts on this approach? |
It sounds pretty reasonable.. though with your new approach you have no option to fully override the adapters list. As in, |
The
adapters
property in the configuration file is replaced by two new properties,adapters_enable
andadapters_disable
. The CLI is unchanged; the new properties are only supported in the config file and can be overridden by the--adapters
CLI option.This is intended to resolve #183 by making it clearer how to enable or disable adapters via the config file.