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

Change request holder filter configuration #793

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bennetelli
Copy link
Member

@bennetelli bennetelli requested a review from hennr June 10, 2022 10:56
@bennetelli bennetelli changed the title Change requet holder filter configuration Change request holder filter configuration Jun 10, 2022
@bennetelli
Copy link
Member Author

ich traue dem Braten irgendwie noch nicht so recht. Lasse den PR mal offen und denke nochmal drüber nach ob das so erwartungskonform ist.

@@ -255,7 +255,6 @@ public TogglzDialect togglzDialect() {
@Configuration
@ConditionalOnClass({OncePerRequestFilter.class})
@ConditionalOnMissingBean(HttpServletRequestHolderFilter.class)
@ConditionalOnProperty(prefix = "togglz.web", name = "request-holder-filter", havingValue = "true")
Copy link
Member

Choose a reason for hiding this comment

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

This is acutally the place I would add this:

@ConditionalOnProperty(prefix = "togglz.web", name = "request-holder-filter", havingValue = "true", matchIfMissing = true)

This would make the filter enabled per default, so all config changes made by you in this PR in the samples project are fine, but we would probably need to set the config value to false for the war sample application?

@hennr
Copy link
Member

hennr commented Nov 15, 2022

ich traue dem Braten irgendwie noch nicht so recht. Lasse den PR mal offen und denke nochmal drüber nach ob das so erwartungskonform ist.

If you could think about this topic next, that would be call.
We could also have a call about this, if you like.

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.

None yet

2 participants