rawls238 / PlanOut.js

A JavaScript port of Facebook's PlanOut Experimentation Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need an example for an Interpreted Experiment

harshadptl opened this issue · comments

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

noted

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?