Skip to content

Commit

Permalink
fixup: on context set -> changed
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
  • Loading branch information
toddbaert committed May 26, 2023
1 parent 0928070 commit 2f5daec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions specification/sections/02-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class MyProvider implements Provider, AutoDisposable {

[![experimental](https://img.shields.io/static/v1?label=Status&message=experimental&color=orange)](https://github.com/open-feature/spec/tree/main/specification#experimental)

Static-context focused providers may need a mechanism to understand when their cache of evaluated flags must be invalidated or updated. An `on-context-set` handler can be defined which performs whatever operations are needed to reconcile the evaluated flags with the new context.
Static-context focused providers may need a mechanism to understand when their cache of evaluated flags must be invalidated or updated. An `on context changed` handler can be defined which performs whatever operations are needed to reconcile the evaluated flags with the new context.

#### Requirement 2.6.1

Expand All @@ -260,7 +260,7 @@ Especially in static-context implementations, providers and underlying SDKs may
The `on context changed` handler provides a mechanism to update this state, often by re-evaluating flags in bulk with respect to the new context.

```java
// MyProvider implementation of the onContextSet function defined in Provider
// MyProvider implementation of the onContextChanged function defined in Provider
class MyProvider implements Provider {
//...

Expand Down
2 changes: 1 addition & 1 deletion specification/sections/03-evaluation-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ see: [static-context paradigm](../glossary.md#static-context-paradigm)

> The API **MUST** have a method for supplying `evaluation context`.
API (global) `evaluation context` can be used to supply data to flag evaluation, such as (but not limited to) user name, email, or shopping cart items.
API (global) `evaluation context` can be used to supply data to flag evaluation, such as (but not limited to) user name, email, or user organization membership changes.

##### Conditional Requirement 3.2.2.2

Expand Down

0 comments on commit 2f5daec

Please sign in to comment.