-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unleashklient #43
Unleashklient #43
Conversation
fun dummyUnleashService(): UnleashService { | ||
logger.warn( | ||
"Funksjonsbryter-funksjonalitet er skrudd AV. " + | ||
"isEnabled gir 'false' med mindre man har oppgitt en annen default verdi.", | ||
) | ||
return DummyUnleashService() | ||
} |
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.
Fornuftig 👍
fun main() { | ||
println(unleashService.getVariant(Toggle.ROUTING_TILSYN_BARN)) | ||
println(unleashService.isEnabled(Toggle.ROUTING_TILSYN_BARN)) | ||
} |
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.
Vil du asserte noe her? 🤔
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.
Det var mer en klasse for å kunne kjøre å teste variant, mest for moro :) Men tenkte den fila kunde være nyttig å bli der
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.
Bra å få dette inn 👏
Hvorfor er denne endringen nødvendig? ✨
For å kunne featuretoggle funksjonalitet.
Skal kjøre dette før jeg deployer og tester selve togglingen
I første omgang så ønsker jeg å bruke variant for å kunne sette antall personer som skal til ny søknad, https://tilleggsstonader-unleash-web.nav.cloud.nais.io/projects/default/features/sak.soknad-routing.tilsyn-barn/variants
Se detaljer i https://docs.getunleash.io/reference/feature-toggle-variants#variant-payload
Vi har en egen unleash på https://tilleggsstonader-unleash-web.nav.cloud.nais.io/
Nais sin dokumentasjon