Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • To compute the user experiment mapping based on the experiment criteria and save it to elastic search

...

Input:

  • Experiment_Definition Cassandra Table
  • Experiment Criteria Config

User Criteria Config

Code Block
languagejs
themeRDark
titleUserCriteriaConfig
{
  "experiments": [
    {
      "exp_id": {
        "criteria": {
          "type": "user",
          "channel": "app/portal/desktop",
          "request": {
            "filters": {
              "organisations.orgName": [
                "sunbird"
              ],
              "framework.board": [
                "CBSE"
              ]
            }
          }
        }
      }
    },
    {
      "exp_id": {
        "criteria": {
          "type": "user",
          "channel": "app/portal/desktop",
          "request": {
            "filters": {
              "emailVerified": true
            }
          }
        }
      }
    }
  ]
}

Note : Currently all the filters are included as "AND" condition

Device Criteria Config

Code Block
languagejs
themeRDark
titleDeviceCriteriaConfig
{
  "exp_id": {
    "criteria": {
      "type": "device",
      "channel": "app/portal/desktop",
      "request": {
        "filters": [
          {
            "name": "state",
            "operator": "IN",
            "value": [
              "Karnataka"
            ]
          },
          {
            "name": "first_access",
            "operator": "GT",
            "value": "2019-07-17"
          }
        ]
      }
    }
  }
}

Output : Output 

User experiment mapping  index to elastic search

...