-
Notifications
You must be signed in to change notification settings - Fork 134
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
RulesetEngine
should only use ConfigurationRuleset
#615
Comments
@patrickkusebauch |
Does it mean we need to move the If so, does it also mean that we need to re-structure the What do you think? |
Yes I know, this is what this issue is about. 😃
Yes.
This would be a breaking change, I would prefer if no breaking change happened to the
I think going forward what you are proposing makes sense, but deciding on breaking changes is @dbrumann 's domain. |
I opened a pull-request: #628 Without any configuration structure changes. |
tl;dr Go ahead with restructuring but try to add a BC-layer if possible. I am planning on writing a BC policy at some point, that will hopefully make it easier to decide on how/what to refactor. My personal rule for now is that code changes are mostly fine, because people primarily use deptrac as phar file. What I consider a BC break is changes to the existing console command inputs/outputs and changes to existing depfile keys. Since deptrac is still in 0.x we can break backwards compatibility between minor releases. For instance 0.14 changed the output of the debug commands. Since those are unlikely to be used in CI, I was fine with it. When it comes to the depfile I am a bit more hesitant, because BC-breaks in there will likely break any existing usage. Moving the keys under ruleset absolutely makes sense to me. Maybe we can avoid a hard BC-break, by allowing both styles to live side by side and raising deprecation warnings for the old style. If not, we can still move forward but then I would like to see which other BC breaks are in that release and give people proper instructions on how to resolve them. See: https://symfony.com/doc/current/components/config/definition.html#deprecating-the-option |
A good first issue to pick up - it is a small refactor.
Right now it depends on
Configuration
and all the methods it calls are used solely in theRulesetEngine
. Therefore all of those should be moved intoConfigurationRuleset
.The text was updated successfully, but these errors were encountered: