Add openfeature module: OpenFeature Java SDK 1.23.0 and flagd 0.19.0 on Spring Boot 4.2.0, targeting, 10% rollout, live reload, flagd-down behaviour, InMemoryProvider tests, with real transcripts
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
658bc52e2b
commit
24dc4ba3ff
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"$schema": "https://flagd.dev/schema/v0/flags.json",
|
||||
"flags": {
|
||||
"new-checkout": {
|
||||
"state": "ENABLED",
|
||||
"variants": { "on": true, "off": false },
|
||||
"defaultVariant": "off",
|
||||
"targeting": {
|
||||
"if": [
|
||||
{ "or": [
|
||||
{ "==": [ { "var": "tier" }, "premium" ] },
|
||||
{ "ends_with": [ { "var": "email" }, "@ankurm.com" ] }
|
||||
] },
|
||||
"on",
|
||||
null
|
||||
]
|
||||
}
|
||||
},
|
||||
"payment-flow-v2": {
|
||||
"state": "ENABLED",
|
||||
"variants": { "on": true, "off": false },
|
||||
"defaultVariant": "off",
|
||||
"targeting": {
|
||||
"fractional": [
|
||||
[ "on", 10 ],
|
||||
[ "off", 90 ]
|
||||
]
|
||||
}
|
||||
},
|
||||
"discount-percent": {
|
||||
"state": "ENABLED",
|
||||
"variants": { "none": 0, "small": 5, "big": 20 },
|
||||
"defaultVariant": "none",
|
||||
"targeting": {
|
||||
"if": [
|
||||
{ "==": [ { "var": "tier" }, "premium" ] }, "big",
|
||||
{ "==": [ { "var": "tier" }, "standard" ] }, "small",
|
||||
null
|
||||
]
|
||||
}
|
||||
},
|
||||
"banner-text": {
|
||||
"state": "ENABLED",
|
||||
"variants": { "plain": "Free shipping over 999", "sale": "Year-end sale: extra 5% off" },
|
||||
"defaultVariant": "plain"
|
||||
},
|
||||
"theme": {
|
||||
"state": "ENABLED",
|
||||
"variants": {
|
||||
"calm": { "color": "teal", "density": "comfortable" },
|
||||
"dense": { "color": "slate", "density": "compact" }
|
||||
},
|
||||
"defaultVariant": "calm"
|
||||
},
|
||||
"legacy-export": {
|
||||
"state": "DISABLED",
|
||||
"variants": { "on": true, "off": false },
|
||||
"defaultVariant": "on"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user