Page MenuHomePhabricator

Log when a user enables or disables IP Info [S]
Open, Needs TriagePublic

Description

Background

Following on from T296415, we'd like to know how many users are enabling or disabling IP Info via Special:Preferences, and agreeing to or disagreeing with (?) IP Info's terms of use.

AC
  • When I enable IP Info, an event should be logged
    • The event_action property should be "enable_ipinfo"
  • When I disable IP Info, an event should be logged
    • The event_action property should be "disable_ipinfo"
  • When I agree with IP Info's terms of use via Special:Preferences, an event should be logged
    • The event_action property should be "check_iagree"
    • The event_source property should be "special_preferences"
  • When I agree with IP Info's terms of use via the infobox (on Special:Contributions), an event should be logged
    • The event_action property should be "check_i_agree"
    • The event_source property should be "accordion"
  • When I disagree with IP Info's terms of use, an event should be logged
    • The event_action property should be "uncheck_iagree"
Notes
  1. See the current.yaml files in the subdirectories in https://gerrit.wikimedia.org/r/plugins/gitiles/schemas/event/secondary/+/refs/heads/master/jsonschema/analytics/mediawiki for numerous examples of JSON Schema schemas that are used in production
  2. wt:Event Platform/Instrumentation How To is a step-by-step guide to creating a creating a schema and validating an event with it
  3. https://www.mediawiki.org/wiki/MediaWiki-Docker/Configuration_recipes/EventLogging is a step-by-step guide to setting up your local development environment

Event Timeline

@jwang: While writing this task up, I remembered that the user can agree to IP Info's terms of use via both a special UI in the infobox on Special:Contributions and Special:Preferences. In the former case, I've suggested that the event_source property be "special_preferences"; in the latter, "accordion".

ARamirez_WMF renamed this task from Log when a user enables or disables IP Info to Log when a user enables or disables IP Info [S].Tue, Nov 30, 5:38 PM