Skip to content

Commit

Permalink
docs: update Dynamic Configuration section
Browse files Browse the repository at this point in the history
Update Dynamic Configuration section to match the variant attachment format updates introduced in openflagr#259.
  • Loading branch information
kgeorgiou authored Jul 27, 2019
1 parent 27ef72d commit 89794ae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/flagr_use_cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,11 @@ UI setting example (frontend looks may iterate quickly):

## Dynamic Configuration

One can also leverage the **Variant Attachment** to run dynamic configuration.
For example, the color_hex of green variant can be dynamically configured.
One can also leverage the **Variant Attachment** to run dynamic configuration, by supplying a valid JSON object attachment.

!> Before [v1.1.3](https://github.com/checkr/flagr/releases/tag/1.1.3), only **string:string** key:value pairs were supported inside the JSON object attachment.

!> We note that for simplicity, Flagr only supports **string/string** key/value pairs
as the attachment format now, and it's up to the application to determine how to
interpret.
For example, the color_hex of green variant can be dynamically configured.

```
evaluation_result = flagr.post_evaluation( entity )
Expand Down

0 comments on commit 89794ae

Please sign in to comment.