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

use ApiExperiment instead of ExperimentInterface for event logs #1053

Merged

Conversation

tinahollygb
Copy link
Contributor

Features and Changes

Uses the new ApiExperiment instead of the ExperimentInterface for the event logs.

Dependencies

Testing

Example payload
{
  "object": "experiment",
  "event": "experiment.updated",
  "data": {
    "previous": {
      "id": "exp_sktwi6h9lak499tp",
      "name": "Experiment Analysis (1)",
      "project": "prj_sktwi76klbcpsjzu",
      "hypothesis": "",
      "description": "",
      "tags": [
        "checkout"
      ],
      "owner": "u_sktwi1id9l7z9xkis",
      "dateCreated": "2022-11-16T20:49:03.997Z",
      "dateUpdated": "2023-02-14T22:24:56.597Z",
      "archived": false,
      "status": "running",
      "autoRefresh": false,
      "variations": [
        {
          "variationId": "0",
          "key": "1",
          "name": "Variation 1",
          "description": "",
          "screenshots": []
        },
        {
          "variationId": "1",
          "key": "2",
          "name": "Variation 2",
          "description": "",
          "screenshots": []
        }
      ],
      "phases": [
        {
          "name": "main",
          "dateStarted": "2022-07-07T07:00:00.000Z",
          "dateEnded": "",
          "reasonForStopping": "",
          "seed": "homepage-nav-ios",
          "coverage": 0.51,
          "trafficSplit": [
            {
              "variationId": "0",
              "weight": 0.5
            },
            {
              "variationId": "1",
              "weight": 0.5
            }
          ],
          "targetingCondition": ""
        }
      ],
      "settings": {
        "datasourceId": "ds_sktwi15odl8t77li0",
        "assignmentQueryId": "tbl_l8t7gkdy",
        "experimentId": "homepage-nav-ios",
        "segmentId": "",
        "queryFilter": "",
        "inProgressConversions": "include",
        "multipleVariations": "exclude",
        "attributionModel": "firstExposure",
        "statsEngine": "bayesian",
        "goals": [],
        "guardrails": []
      }
    },
    "current": {
      "id": "exp_sktwi6h9lak499tp",
      "name": "Experiment Analysis (1)",
      "project": "prj_sktwi76klbcpsjzu",
      "hypothesis": "",
      "description": "",
      "tags": [
        "checkout"
      ],
      "owner": "u_sktwi1id9l7z9xkis",
      "dateCreated": "2022-11-16T20:49:03.997Z",
      "dateUpdated": "2023-02-14T22:24:56.597Z",
      "archived": false,
      "status": "running",
      "autoRefresh": false,
      "variations": [
        {
          "variationId": "0",
          "key": "1",
          "name": "Variation 1",
          "description": "",
          "screenshots": []
        },
        {
          "variationId": "1",
          "key": "2",
          "name": "Variation 2",
          "description": "",
          "screenshots": []
        }
      ],
      "phases": [
        {
          "name": "main",
          "dateStarted": "2022-07-07T07:00:00.000Z",
          "dateEnded": "",
          "reasonForStopping": "",
          "seed": "homepage-nav-ios",
          "coverage": 0.51,
          "trafficSplit": [
            {
              "variationId": "0",
              "weight": 0.5
            },
            {
              "variationId": "1",
              "weight": 0.5
            }
          ],
          "targetingCondition": ""
        }
      ],
      "settings": {
        "datasourceId": "ds_sktwi15odl8t77li0",
        "assignmentQueryId": "tbl_l8t7gkdy",
        "experimentId": "homepage-nav-ios",
        "segmentId": "",
        "queryFilter": "",
        "inProgressConversions": "include",
        "multipleVariations": "exclude",
        "attributionModel": "firstExposure",
        "statsEngine": "bayesian",
        "goals": [],
        "guardrails": []
      }
    }
  }
}

@linear
Copy link

linear bot commented Mar 7, 2023

GB-64 [BE]: Use new ApiExperiment shape for event logging

Use new ApiExperiment shape for event logging.

Depends on this PR being merged: #1028

@tinahollygb tinahollygb requested a review from a team March 7, 2023 01:50
@github-actions
Copy link

github-actions bot commented Mar 7, 2023

Your preview environment pr-1053-bttf has been deployed.

Preview environment endpoints are available at:

@tinahollygb tinahollygb merged commit 9d00011 into main Mar 7, 2023
@tinahollygb tinahollygb deleted the tina/gb-64-be-use-new-apiexperiment-shape-for-event branch March 7, 2023 17:37
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

Successfully merging this pull request may close these issues.

2 participants