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

@FeatureGroup not working in kotlin enum based features #1190

Open
jakublabno opened this issue May 6, 2024 · 0 comments
Open

@FeatureGroup not working in kotlin enum based features #1190

jakublabno opened this issue May 6, 2024 · 0 comments

Comments

@jakublabno
Copy link

Grouping features by @FeatureGroup is not working in kotlin

@Configuration
class FeaturesConfiguration {

    @Bean
    fun featureProvider() = EnumClassFeatureProvider(Features::class.java)
...
@FeatureGroup
@Label("Fancy group")
annotation class MyFeaturesGroup
enum class Features {

        @MyFeaturesGroup
        @EnabledByDefault
        ANY;

        fun isActive(): Boolean {
            return FeatureContext.getFeatureManager().isActive { name }
        }
    }

Console shows all ungrupped
obraz

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

No branches or pull requests

1 participant