-
Notifications
You must be signed in to change notification settings - Fork 4
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
Merged
oliverrahner
merged 4 commits into
main
from
bugfix/remove-env-from-set-capabilities-service-since-its-not-used
May 16, 2024
Merged
Bugfix/remove env from set capabilities service since its not used #216
oliverrahner
merged 4 commits into
main
from
bugfix/remove-env-from-set-capabilities-service-since-its-not-used
May 16, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
added
the
breaking-change
Indicates, that this will be a breaking change and the major version needs to be adjusted.
label
May 16, 2024
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.
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
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.
oliverrahner
approved these changes
May 16, 2024
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.