Query regarding environments

Comments

6 comments

  • Abindukalpa

    Also, i understand the way to distinguish between splits in different environments is via the api key. If in the the dev environment, i am using the api key for a split, it should pick it up. But it is not for some reason. 

  • Bilal Al-Shahwany

    Hi Abindukalpa,

    Deciding how many environments to use is really up to you, from Split point of view there is no difference between environments on how the SDK works or data management on the Split cloud.

    You can use the same development workflow in Split, using Development environment for developing and lite testing your code, then do full testing on Staging environment before moving to Production.

    The API Key is attached to one environment only, so only the Splits that are added to that environment can be used in getTreatment call.

    Can you elaborate more on what is the issue you are seeing? any errors in SDK?

    Thanks

    Bilal

  • Abindukalpa

    Hi Bilal,

    I have set up a split. I can see it work as expected in my local development environment, but when i promote the software to the next environment, i do not see the split working as expected. It appears as if the split is not being evaluated. Is there any reason why the split is not being accessed?  Could you please help me with this?

  • Bilal Al-Shahwany

    Hi Abindukalpa, you need to add the Split to second environment form the Split UI.

    Login to app.Split.io and click on the Split, then from the Environment list in the page top, select the second environment, the page will ask to define new Split rules or copy the rules from another environment. 

    Once the Split is added to the new environment, your SDK will be able to use getTreatment using the new environment API Key.

    Thanks

    Bilal  

  • Abindukalpa

    Thank you for your help Bilal.

  • Bilal Al-Shahwany

    You are most welcome Amrita.

Please sign in to leave a comment.