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

Edit audiences with the SDK #499

Open
siaavush opened this issue Jan 2, 2023 · 3 comments
Open

Edit audiences with the SDK #499

siaavush opened this issue Jan 2, 2023 · 3 comments
Labels
acknowledged The issue has been acknowledged and being looked into. Further details will follow.

Comments

@siaavush
Copy link

siaavush commented Jan 2, 2023

Hi, we are using Optimizely in our organization and now there is a requirement for updating audiences, we searched a lot, and apparently, there is no such feature in the java SDK.

The requirement is that there is a micro-service that notifies us to include a new audience in an already existing feature flag (we want to roll out a feature in our backends by cities) and we need to add the new audience programmatically to the audiences whenever the other micro-service tell us. This is not an A/B test or an experiment it is actually a rollout plan.

@russell-loube-optimizely

Hi @siavashingka , our apologies for the very prolonged reply.

We unfortunately don't offer the ability to create audiences programmatically via the SDK. However, we do offer such functionality with our REST API (https://docs.developers.optimizely.com/feature-experimentation/reference/create_audience). Would using our REST API possibly work with your implementation?

We have created an internal ticket (FSSDK-9442) to analyze your feature request further.

@russell-loube-optimizely russell-loube-optimizely added the acknowledged The issue has been acknowledged and being looked into. Further details will follow. label Jun 23, 2023
@russell-loube-optimizely
Copy link

russell-loube-optimizely commented Jul 10, 2023

Hi again @siavashingka , I wanted to follow up once more on the above.

Our dev team looked into the possibility of adding an SDK method for updating audiences which can currently be done through our REST API. Adding this into the SDKs would warrant some further investigation as to what other REST API functionality would make sense to be added and authentication considerations. Given the larger lift and open questions on this, I unfortunately don't think we can accommodate this now.

I'm not sure if you've had a chance to evaluate updating audiences programmatically via the REST API. It's admittedly a bit involved. I'm happy to hop on a call to walk you through the steps and also get your feedback on how we could further improve our SDKs and app for use cases like yours. Please let me know if interested! Thank you.

@siaavush
Copy link
Author

siaavush commented Jul 24, 2023

Hi Russell @russell-loube-optimizely , thanks for your detailed explanation in this regard and you're follow-up, we have implemented it manually in our code base, I would say that it was a bit of a hassle because we had to dig so deep into the internals of the implementation of Optimizely and understanding how it works and go through the specific data-structure (the tree structure of and ors) that it uses for the audience and so on, I am open to sit together in this regard and potentially save time for other teams that might need this functionality in future.

You can reach me at this email address: [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledged The issue has been acknowledged and being looked into. Further details will follow.
Projects
None yet
Development

No branches or pull requests

2 participants