[DE 1.1.9] Include performer_edit_count in exposure events
Closed, ResolvedPublic1 Estimated Story Points

Description

To include edit count-based dimensions in GB, we need to start recording edit counts in exposure events.

Acceptance criteria

  • performer_edit_count contextual attribute is included in exposure events when using Experiment#sendExposure()
    • TK PHP SDK
    • TK JS SDK

Event Timeline

mpopov triaged this task as Medium priority.Tue, Jul 28, 2:39 PM
mpopov updated the task description. (Show Details)
mpopov set the point value for this task to 1.
mpopov raised the priority of this task from Medium to High.Tue, Jul 28, 3:35 PM
mpopov lowered the priority of this task from High to Medium.
mpopov raised the priority of this task from Medium to High.Tue, Jul 28, 3:40 PM

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

[mediawiki/extensions/TestKitchen@master] Include performer_edit_count in exposure events

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

Just to check, performer_edit_count and not performer_edit_count_bucket, right?

From our discussion:

  • We considered whether edit_count_bucket would be preferable to edit_count (raw).
  • The _bucket version doesn't work for our stakeholders because DE3 strategy talks about editors with 100 or fewer edits, but the bucketing scheme doesn't work for us because 100 edits is included the 100-299 bucket.
    • The bucketing scheme (implementation) was borrowed from editing/editor stats datasets that were being published.
    • We should at some point revisit the bucketing scheme used in TK.
  • There was a concern about possible risk of including the raw edit count and its potential for identifying/de-anonymizing.
    • The primary guiding factor for us is that edit count is not called out by Data Collection Guidelines as a risky piece of information.
    • Furthermore, we don't have a ledger of per-editor edit counts, so it would be challenging (but perhaps not impossible) for a bad actor in the system to use a subject's edit count in an experiment exposure event to figure out a set of editors that the subject could have been.
  • We considered implementing performer_edit_count_capped contextual attribute with a cap of 300 edits (partially informed by the "Very Experienced" editor categorization in https://meta.wikimedia.org/wiki/Research_and_Decision_Science/Data_glossary) but that would have significantly increased scope that we don't have bandwidth for and without a clear sense of what risk this would be mitigating.
  • We also considered capping the value manually, but it would have increased complexity of Experiment#sendExposure() method, which is currently very lightweight and easy to maintain.

I am making the decision to use performer_edit_count as originally requested.

Change #1319185 merged by jenkins-bot:

[mediawiki/extensions/TestKitchen@master] Include performer_edit_count in exposure events

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