PlanOut.js icon indicating copy to clipboard operation
PlanOut.js copied to clipboard

Need an example for an Interpreted Experiment

Open harshadptl opened this issue 7 years ago • 2 comments

Right now, it is not so clear and I am having a hard time getting it work

harshadptl avatar Apr 12 '18 14:04 harshadptl

noted

rawls238 avatar Apr 15 '18 21:04 rawls238

Same problem here. Referring to sample_interpreter_es5.js. Would appreciate help with the following -

  1. Need clarity on how to use an interpreted experiment with NameSpaces or whether it is currently supported. (In an optimistic trial 😛) passing Interpreter to NameSpace produces Missing argument unit error.

  2. It seems no assign is present on the planout.Interpreter class, is there any equivalent for it? I want to know how to dynamically disable exposure logging using the native API. Something that is equivalent of this snippet-

    def assign(self, params, userid):
        params.feature_enabled = False
    
        country = get_user_country(userid)
        if country != 'Germany':
        return False
        # ...
    

P.S. #45 Mentions that returning false in the PlanOut script seems to do the equivalent of returning false in assign. Is this correct?

udayrajMT avatar Feb 11 '20 14:02 udayrajMT