Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Vijai
@vijai335_twitter
Is there any sample code which uses UsernameActivationStrategy
Christian Kaltepoth
@chkal
@vijai335_twitter It should be straight forward. Just use a corresponding UserProvider so Togglz knows about which user is currently acting. Then you can activate the strategy for specific users using the Togglz Console.
akkiJoshi
@akkiJoshi
hi
akkiJoshi
@akkiJoshi
can someone help me to configure for the JDBCStateRepository
i am using weblogic with Oracle database server
what should come at @Resource(mappedName =
Rui Figueira
@ruifigueira
Hi @akkiJoshi
The @Resource annotation is for injecting JNDI resources
Do you have the Database configured in weblogic?
akkiJoshi
@akkiJoshi
hi Rui
yes i have Database configured
Rui Figueira
@ruifigueira
Ok, so you need to check the weblogic console and try to get the JNDI pat for that database
*path
akkiJoshi
@akkiJoshi
okay
thanks
akkiJoshi
@akkiJoshi
hi
Did anyone tried for customer FeatureManager
*Custom
Christian Kaltepoth
@chkal
@akkiJoshi You usually won't need that. What's you use case?
akkiJoshi
@akkiJoshi
in which cases it is useful
?
Christian Kaltepoth
@chkal
Never. ;-)
akkiJoshi
@akkiJoshi
hahaha
Christian Kaltepoth
@chkal
Well, you asked if anyone ever tried it. So I assumed you had some kind of use case. ;-)
Mitch Kent
@spudtheimpaler
Hi @akkiJoshi - very late but we have created our own Feature Manager - though it is effectively a wrapper around the original that creates audit logs for who changed what features and what to.
It's rather trivial, it accepts the original as a constructor argument and just delegates whilst logging what has happened.
But, in case it wasn't obvious, that was our use case: Auditing.
Unfortunately is quite tightly tied to our framework otherwise I'd share it...
Christian Kaltepoth
@chkal
@spudtheimpaler Thanks for sharing these details!
Joshua White
@joshuawhite929
Hello. New to togglz, and had a couple of questions on things I haven’t found in the docs
Specifically looking at the boot starter stuff... are there dependencies on Spring MVC or the availability of a servlet Container?
For example, what if I was using Springs reactive stack and netty?
Christian Kaltepoth
@chkal
Togglz Core doesn't depend on Servlet, for the Spring Boot Starter I'm not sure. Maybe @ruifigueira can answer that?
Rui Figueira
@ruifigueira
@joshuawhite929 , some components like the togglz console depend on servlets, but they are optional, and should only be loaded in a spring boot app if servlet classes are found in the classpath. So I would say that
It should work with a non-servlet setup. If you find any issues let us know
Joshua White
@joshuawhite929
@ruifigueira , thanks for the answer
I have another question though. When looking at the Spring Boot application properties for togglz (see https://www.togglz.org/documentation/spring-boot-starter.html), I mentions the use of a property called feature-enums
I have set up two different feature enum implementation classes without using this and they seem to be found just fine
is this because the isActive() method is calling FeatureContext.getFeatureManager().isActive(this);?
is the feature-enums property only needed when you are not using the FeatureContext in your enum class?
Its not clear when you should be using feature-enums
Christian Kaltepoth
@chkal
Hey all. Togglz is looking for a new maintainer. See this mail for details: https://groups.google.com/forum/#!topic/togglz-dev/4eL0tAO3q-A
Rui Figueira
@ruifigueira
@chkal, I just wanted to thank you, Togglz is a great tool. I totally understand your reasons, and I wish you all the best
Rui Figueira
@ruifigueira
From my part, I'll try to keep Spring modules updated
Rui Figueira
@ruifigueira
@joshuawhite929 , the feature-enums property is required if you actually want to register them in the FeatureManager, otherwise you will always get the default value, which seems to be the case. For instance, if you activate the Togglz console, it won't list your features unless they are registered.
Joshua White
@joshuawhite929
@ruifigueira I haven looked at the source yet, but I was wondering if the call to ‘FeatureContext.getFeatureManager().isActive(this);’ would also register the feature class if it hadn’t been already. I ask because I am able to toggle values without explicitly registering my feature class
Rui Figueira
@ruifigueira
I don't think it does, you need to provide your class to FeatureManager explicitly. You can get values from unregistered features, but they won't be persisted, for instance
Christian Kaltepoth
@chkal
@ruifigueira Awesome! Thanks a lot!
Alfred Feldmeyer
@byteSamurai

Hey everybody,

Rooky question here: Is it correct that in Junit - if not defined differently - we use the FallbackTestFeatureManager, which will set all features to enabled? Why is this so?