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

Server-side/App config: Option to produce JSON output of test config #83

Open
kingo55 opened this issue Jun 15, 2020 · 0 comments
Open

Comments

@kingo55
Copy link
Member

kingo55 commented Jun 15, 2020

If we want to run experiments server-side or through an app, we need a way to share the experiment configuration. Publishing the configuration through JSON seems the most plausible way for accessing test config through an App/Server-side SDK.

[
  {
    "state": "live",
    "sampleRate": 1,
    "id": "ex1",
    "name": "test name",
    "recipes": {
      "0": {
        "name": "Control"
      },
      "1": {
        "name": "Treatment"
      }
    },
    "trigger": "something",
    "divertTo": "1"
  }, {
    "state": "live",
    "sampleRate": 1,
    "id": "ex2",
    "name": "another test",
    "recipes": {
      "0": {
        "name": "Control"
      },
      "1": {
        "name": "Treatment"
      }
    },
    "trigger": "something",
    "divertTo": "1"
  }, {
    "state": "staging",
    "sampleRate": 0,
    "id": "ex3",
    "name": "Next test",
    "recipes": {
      "0": {
        "name": "Control"
      },
      "1": {
        "name": "Treatment"
      }
    },
    "trigger": "something"
  }, {
    "state": "live",
    "sampleRate": 1,
    "id": "ex4",
    "name": "Test 4",
    "recipes": {
      "0": {
        "name": "Control"
      },
      "1": {
        "name": "Treatment"
      }
    },
    "trigger": "something",
    "divertTo": "1"
  }
]

Using JSON would mean we could focus on improving the one codebase for apps/web etc. Just a thought.

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

1 participant