Closed praveenm-symplr closed 2 years ago
Hi— it sounds like this is worth looking into, but could you please use support.launchdarkly.com instead to report it as a general support issue? The dotnet-client-sdk
GitHub project is for our client-side .NET SDK— that is, the SDK for consuming feature flags— which is not related to the REST API for flag updating that you're referring to. The SDK maintainers do not have any involvement with those APIs.
Thanks @eli-darkly I have created a support request. We can close this.
Is this a support request? This issue tracker is maintained by LaunchDarkly SDK developers and is intended for feedback on the SDK code. If you're not sure whether the problem you are having is specifically related to the SDK, or to the LaunchDarkly service overall, it may be more appropriate to contact the LaunchDarkly support team; they can help to investigate the problem and will consult the SDK team if necessary. You can submit a support request by going here or by emailing support@launchdarkly.com.
Note that issues filed on this issue tracker are publicly accessible. Do not provide any private account information on your issues. If your problem is specific to your account, you should submit a support request as described above.
Describe the bug Duplicate users getting added while adding the users into a feature flag. I have used the "op": "add" with path and value in the request's body and did multiple add requests. All the requests resulted in 200 and the same user added to the feature flag again and again.
LD-API-Version: beta Request URI https://app.launchdarkly.com/api/v2/flags/{{project}}/{{featureflag}} Body: [ { "op": "add", "path": "/environments/{{environment}}/targets/0/values/-", "value": "{{user}}" } ]
To reproduce Create a feature flag and try to add an available user to the same flag multiple times using the above-specified API.
Expected behavior The user should not get added if it is already present. Either an graceful error message should be sent as an response or it should return 200 as it is already available.
Logs If applicable, add any log output related to your problem.
SDK version v2 API
Language version, developer tools Used Postman to validate the API response
OS/platform Windows 10
Additional context Add any other context about the problem here.