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

removed unused DITTO_POLICIES_ENFORCER_CACHE_MAX_SIZE in thingssearch #2012

Merged

Conversation

kalinkostashki
Copy link
Contributor

@kalinkostashki kalinkostashki commented Sep 9, 2024

  • this property is only used for the policies service in CachingPolicyEnforcerProvider.java and PolicyEnforcerProviderExtension.java

@kalinkostashki kalinkostashki force-pushed the bugfix/remove-unused-configuration branch from 01a81b8 to c104a9c Compare September 9, 2024 06:42
Copy link
Member

@thjaeckle thjaeckle left a comment

Choose a reason for hiding this comment

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

Thanks @kalinkostashki for the PR - you're right - those are not used in things-search.

However, there are also more config keys to the DITTO_POLICIES_ENFORCER_CACHE_*- we should also remove them, right?

And what about the Helm values.yaml?
.Values.thingsSearch.config.updater.stream.policiesEnforcer.cache. can likely be removed from that as well, right?

@kalinkostashki kalinkostashki force-pushed the bugfix/remove-unused-configuration branch 2 times, most recently from 53fdd3e to b493647 Compare September 9, 2024 14:38
 - this property is only used for the policies service in CachingPolicyEnforcerProvider.java and PolicyEnforcerProviderExtension

Signed-off-by: Kalin Kostashki <kalin.kostashki@bosch.com>
@kalinkostashki kalinkostashki force-pushed the bugfix/remove-unused-configuration branch 2 times, most recently from 7f4c517 to dcecf8c Compare September 9, 2024 14:48
@kalinkostashki
Copy link
Contributor Author

Thanks @kalinkostashki for the PR - you're right - those are not used in things-search.

However, there are also more config keys to the DITTO_POLICIES_ENFORCER_CACHE_*- we should also remove them, right?

And what about the Helm values.yaml? .Values.thingsSearch.config.updater.stream.policiesEnforcer.cache. can likely be removed from that as well, right?

I don't we should remove Values.thingsSearch.config.updater.stream.policiesEnforcer.cache. as those are used to set THINGS_SEARCH_UPDATER_STREAM_POLICY_CACHE* options.

@thjaeckle
Copy link
Member

I don't we should remove Values.thingsSearch.config.updater.stream.policiesEnforcer.cache. as those are used to set THINGS_SEARCH_UPDATER_STREAM_POLICY_CACHE* options.

Oh, good catch - then they were used by 2 places .. which is already a bad smell :D

Your changes LGTM 👍

@thjaeckle thjaeckle merged commit b1ecb6d into eclipse-ditto:master Sep 10, 2024
9 checks passed
@thjaeckle thjaeckle added this to the 3.5.11 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants