Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: [add support for json arrays in variant values] (FF-2947) #24

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

leoromanovsky
Copy link
Member

@leoromanovsky leoromanovsky commented Aug 2, 2024

observation

bug report observed that variation values with top level JSON arrays were throwing an exception, in the android SDK: https://github.com/Eppo-exp/android-sdk/blob/b95c1ce20b6b433a2b8722144e6edb5996e7cf4a/eppo/src/main/java/cloud/eppo/android/EppoClient.java#L438

changes

I was tracing the code to determine where the parsing was happening and updated the unit tests in this repo.

Have learned that there is no direct support for JSON objects in this repo, so no broken tests to fix. Just augmenting them in this PR.

A few things to consider:

  • there is a copy of the flags-v1.json in this repo but no easy way to update it: consider using a Makefile to clone the repo or make the test data repo a submodule.

@leoromanovsky leoromanovsky marked this pull request as ready for review August 2, 2024 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants