This task is about implementing a way for Editing Engineering and Product Analytics to differentiate between events that are emitted from the Reply Tool and events that are emitted from the New Discussion Tool.
Background
Currently, EditAttemptStep contains one integration value for DiscussionTool features. This value is called discussiontools.
To date, we've been able to assume all integration-discussiontools events are emitted from the Reply Tool.
Trouble is, once the New Discussion Tool is deployed, it will no longer be clear what editor integration – the Reply Tool or the New Discussion Tool – is responsible for the integration-discussiontools events we will be seeing.
Implementation details
Use the EditAttemptStep schema's existing init_type field to differentiate between events emitted from the Reply Tool and the New Discussion Tool.
Once implemented, events from the Reply Tool and New Discussion Tool should be logged as follows:
- Reply Tool events: event.action = 'init', event.integration = 'discussiontools', event.init_type = 'page'
- New Discussion Tool events: event.action = 'init', event.integration = 'discussiontools', event.init_type = 'section'
The above is the outcome of what was discussed in T265099#6561327, T265099#6571916 and T265099#6604344.
Done
- The changes detailed in the ===Implementation details section are implemented so that we (Editing and Product Analytics) are able to differentiate between events emitted from the Reply Tool and events emitted from the New Discussion Tool.