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

Need an example for an Interpreted Experiment #71

Open
harshadptl opened this issue Apr 12, 2018 · 2 comments
Open

Need an example for an Interpreted Experiment #71

harshadptl opened this issue Apr 12, 2018 · 2 comments

Comments

@harshadptl
Copy link

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

@rawls238
Copy link
Owner

noted

@udayrajMT
Copy link

udayrajMT commented Feb 11, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants