Page MenuHomePhabricator

Add setStream( STREAM_NAME) and setSchema( SCHEMA_ID) functions to the TestKitchen PHP SDK
Open, Needs TriagePublic2 Estimated Story Points

Description

Description

We already implemented a way for experiments to be able to set a custom stream/schema when sending events using an Experiment instance in the JS but those functions don't exist in the PHP SDK. This is needed when an experiment is using a custom stream/schema to be able to send events via Experiment#send function, and also to avoid some problems when, in absence of these functions, experiment developers have to use a workaround via submitInteraction directly

Acceptance criteria

  • Experiment#setStream( STREAM_NAME ) has been implemented in the TestKitchen PHP SDK
  • Experiment#setSchema( SCHEMA_ID ) has been implemented in the TestKitchen PHP SDK

Event Timeline

Sgs moved this task from Inbox to Tracking on the Growth-Team board.

Change #1234120 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/extensions/TestKitchen@master] Add setSchema, setStream to Experiment object

https://gerrit.wikimedia.org/r/1234120

Change #1234120 merged by jenkins-bot:

[mediawiki/extensions/TestKitchen@master] Add setSchema, setStream to Experiment object

https://gerrit.wikimedia.org/r/1234120