Skip to content

Edit audiences with the SDK #499

Open

Description

@siaavush

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.

Activity

  1. russell-loube-optimizely commented on Jun 23, 2023

    @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.

  2. russell-loube-optimizely commented on Jul 10, 2023

    @russell-loube-optimizely

    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.

  3. siaavush commented on Jul 24, 2023

    @siaavush
    Author

    Hi Russell Russell Loube (@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: siavash.soleymani@ingka.ikea.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedThe issue has been acknowledged and being looked into. Further details will follow.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions