Skip to content

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

@kingo55

Description

@kingo55

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions