Commit e7d1d34
feat!: DISABLED is a successful evaluation (still defaults) (#395)
* feat(flagd-core): add disabled flag evaluation e2e BDD scenarios
Signed-off-by: Jonathan Norris <jonathan.norris@dynatrace.com>
* chore: bump flagd-testbed submodule to v3.8.0
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* feat(flagd): RPC resolver substitutes caller default on reason=DISABLED
Mirrors the existing reason=DEFAULT substitution: when the server returns an empty variant alongside DISABLED, surface the caller's code default value rather than the zero proto value.
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fix(flagd): RPC Object resolver tolerates missing value field
MessageToDict drops the value field entirely for DISABLED responses (no value is sent). Fall back to the caller's default_value via .get() instead of raising KeyError; the substitution branch then surfaces the default with reason=DISABLED.
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* style(flagd): apply ruff format to DISABLED guard
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* chore(flagd-core): drop redundant disabled.feature and test_disabled.py
v3.8.0 of the test-harness submodule already bundles disabled.feature in evaluator/gherkin/ and the disabled-* flags in evaluator/flags/testkit-flags.json. The hatch build hook auto-copies both into the testkit, so test_evaluator.py picks the disabled scenarios up via get_features_path() without any local files.
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* Apply suggestion from @toddbaert
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
---------
Signed-off-by: Jonathan Norris <jonathan.norris@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>1 parent e1c3c6a commit e7d1d34
2 files changed
Lines changed: 11 additions & 6 deletions
File tree
- providers/openfeature-provider-flagd
- openfeature
- src/openfeature/contrib/provider/flagd/resolvers
Submodule test-harness updated 10 files
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | | - | |
414 | | - | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
415 | 416 | | |
416 | 417 | | |
417 | 418 | | |
| |||
443 | 444 | | |
444 | 445 | | |
445 | 446 | | |
446 | | - | |
447 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
448 | 453 | | |
449 | 454 | | |
450 | 455 | | |
| |||
0 commit comments