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

String Array as CustomProperty Not Properly Evaluated in .NET SDK #45

Open
adamjez opened this issue Jan 13, 2025 · 0 comments
Open

String Array as CustomProperty Not Properly Evaluated in .NET SDK #45

adamjez opened this issue Jan 13, 2025 · 0 comments

Comments

@adamjez
Copy link

adamjez commented Jan 13, 2025

I have encountered an issue where specifying a string array as a CustomProperty is not properly evaluated in the .NET SDK. However, the same configuration is correctly evaluated in both the Statsig dashboard Test Config and the Node.js SDK.

For example, here are the user properties I'm passing:

{
  "country": "EE",
  "custom": {
    "abtest": ["82=2", "703=1"]
  },
  "customIDs": {},
  "locale": "et_EE",
  "statsigEnvironment": {
    "tier": "development"
  }
}

In the Statisg, I have a Feature Gate with the criteria:

  • CustomProperty abtest Contains any of 703=1.

This rule correctly meets the condition for the given user in both the Statsig dashboard Test Config and the Node.js SDK. However, in the .NET SDK, this condition does not seem to evaluate as expected.

Questions:

  1. Does Statsig officially support string arrays as custom properties?
  2. If yes, is there a specific way to use it in the .NET SDK?

Environment:

  • Version: 1.29.0
  • Platform: Windows, Linux

Thank you for your help!

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

No branches or pull requests

1 participant