summaryrefslogtreecommitdiffstats
path: root/toolkit/components/backgroundtasks/tests/xpcshell/experiment.json
blob: 606cff3de9c65ace153ec68585418238703a6c3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
  "permissions": {},
  "data": {
    "slug": "test-experiment",
    "appId": "firefox-desktop",
    "appName": "firefox_desktop",
    "channel": "",
    "endDate": null,
    "branches": [
      {
        "slug": "treatment-a",
        "ratio": 1,
        "feature": {
          "value": {},
          "enabled": false,
          "featureId": "this-is-included-for-desktop-pre-95-support"
        },
        "features": [
          {
            "value": {
              "id": "test-experiment:treatment-a",
              "groups": ["backgroundTaskMessage"],
              "content": {
                "body": "Body A",
                "title": "Treatment A",
                "tag": "should_be_overridden_a"
              },
              "trigger": {
                "id": "backgroundTask"
              },
              "priority": 1,
              "template": "toast_notification",
              "frequency": {
                "lifetime": 2
              },
              "targeting": "true"
            },
            "enabled": true,
            "featureId": "backgroundTaskMessage"
          }
        ]
      },
      {
        "slug": "treatment-b",
        "ratio": 1,
        "feature": {
          "value": {},
          "enabled": false,
          "featureId": "this-is-included-for-desktop-pre-95-support"
        },
        "features": [
          {
            "value": {
              "id": "test-experiment:treatment-b",
              "groups": ["backgroundTaskMessage"],
              "content": {
                "body": "Body B",
                "title": "Treatment B"
              },
              "trigger": {
                "id": "backgroundTask"
              },
              "priority": 1,
              "template": "toast_notification",
              "frequency": {
                "lifetime": 2
              },
              "targeting": "true"
            },
            "enabled": true,
            "featureId": "backgroundTaskMessage"
          }
        ]
      }
    ],
    "outcomes": [],
    "arguments": {},
    "isRollout": false,
    "probeSets": [],
    "startDate": null,
    "targeting": "('app.shield.optoutstudies.enabled'|preferenceValue) && (version|versionCompare('102.!') >= 0)",
    "featureIds": ["backgroundTaskMessage"],
    "application": "firefox-desktop",
    "bucketConfig": {
      "count": 10000,
      "start": 0,
      "total": 10000,
      "namespace": "firefox-desktop-backgroundTaskMessage-1",
      "randomizationUnit": "normandy_id"
    },
    "schemaVersion": "1.8.0",
    "userFacingName": "test-experiment",
    "referenceBranch": "treatment-a",
    "proposedDuration": 28,
    "enrollmentEndDate": null,
    "isEnrollmentPaused": false,
    "proposedEnrollment": 7,
    "userFacingDescription": "Test experiment to test supporting the Messaging System in Firefox background tasks.",
    "id": "test-experiment",
    "last_modified": 1657578927064
  }
}