dynatrace-oss / progressiveDelivery-masterclass

Apache License 2.0
4 stars 11 forks source link

Demo App: TypeMismatchError: FlagdError:, TYPE_MISMATCH #25

Closed agardnerIT closed 1 year ago

agardnerIT commented 1 year ago

https://github.com/AloisReitbauer/progressiveDelivery-masterclass/blob/b933f441ff8bba16b7c9252e6d3a11e00cec09bf/demoapp/app.js#L71C2-L71C71

The demo app code is currently requesting a boolean but my-flag is defined as a string:

https://github.com/AloisReitbauer/progressiveDelivery-masterclass/blob/b933f441ff8bba16b7c9252e6d3a11e00cec09bf/gitops/manifests/featureflags/featureflags.yaml#L12

Fix: Change "true": "true" to "true": true and "false": "false" to "false": false

OR change getBooleanValue to getStringValue

Because the intention is a boolean, it makes more sense to go with the first fix.