Skip to content
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

Bugfix/remove env from set capabilities service since its not used #216

Conversation

saschadoemer
Copy link
Member

No description provided.

This commit removes the unnecessary environment dependency in SetCapabilityServiceImpl's constructor and adjusts all corresponding usages. This makes the SetCapabilityServiceImpl more loosely coupled, enhancing readability and making it easier to maintain. Removal of the parameter also simplifies its instantiation in tests and reduces potential issues related to varying environments.
The unused import, 'com.dke.data.agrirouter.api.env.QA', was removed from the class 'SetCapabilityServiceTest'. This cleanup improves the readability of the code and adheres to good coding practices.
@saschadoemer saschadoemer self-assigned this May 16, 2024
@saschadoemer saschadoemer added the breaking-change Indicates, that this will be a breaking change and the major version needs to be adjusted. label May 16, 2024
Copy link
Member

@oliverrahner oliverrahner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick thought, can we make this change non-breaking (at least on the code level) by providing an overloaded constructor that still accepts the Environment, and mark that as obsolete?

@saschadoemer saschadoemer marked this pull request as draft May 16, 2024 09:00
@saschadoemer saschadoemer added contains-something-deprecated Contains changes that will lead to removals in the next major version update. and removed breaking-change Indicates, that this will be a breaking change and the major version needs to be adjusted. labels May 16, 2024
…into bugfix/remove-env-from-set-capabilities-service-since-its-not-used
The SetCapabilityServiceImpl constructor that takes an Environment parameter has been deprecated. A warning message has been added to indicate that this constructor is deprecated, and it should not be used moving forward as it will be removed in a future release. This change aims to streamline the use of the SetCapabilityService requiring no environment parameters.
@saschadoemer saschadoemer marked this pull request as ready for review May 16, 2024 11:32
@oliverrahner oliverrahner merged commit 2a0e152 into main May 16, 2024
3 checks passed
@saschadoemer saschadoemer deleted the bugfix/remove-env-from-set-capabilities-service-since-its-not-used branch May 16, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contains-something-deprecated Contains changes that will lead to removals in the next major version update.
Projects
None yet
2 participants