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

Unleashklient #43

Merged
merged 4 commits into from
Jan 31, 2024
Merged

Unleashklient #43

merged 4 commits into from
Jan 31, 2024

Conversation

blommish
Copy link
Collaborator

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

@blommish blommish requested a review from a team as a code owner January 31, 2024 10:17
Comment on lines +34 to +40
fun dummyUnleashService(): UnleashService {
logger.warn(
"Funksjonsbryter-funksjonalitet er skrudd AV. " +
"isEnabled gir 'false' med mindre man har oppgitt en annen default verdi.",
)
return DummyUnleashService()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Fornuftig 👍

Comment on lines +11 to +14
fun main() {
println(unleashService.getVariant(Toggle.ROUTING_TILSYN_BARN))
println(unleashService.isEnabled(Toggle.ROUTING_TILSYN_BARN))
}
Copy link
Contributor

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? 🤔

Copy link
Collaborator Author

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

Copy link
Contributor

@eirarset eirarset left a 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 👏

@blommish blommish merged commit 525870b into main Jan 31, 2024
1 check passed
@blommish blommish deleted the unleash branch January 31, 2024 12:10
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