Page MenuHomePhabricator

Log when a user agrees or disagrees with the use agreement
Closed, ResolvedPublic5 Estimated Story Points

Description

Background

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

This is split from T296472: Log when a user enables/disables IP Info.

AC
  • When I agree with IP Info's terms of use via Special:Preferences, an event should be logged
    • The event_action property should be "accept_disclaimer"
    • The event_source property should be "special_preferences"
  • When I disagree with IP Info's terms of use, an event should be logged
    • The event_action property should be "uncheck_iagree"
    • The event_source property should be "special_preferences"
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

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptMar 15 2022, 8:19 AM

@STran: Assuming this task is about the IP Info code project, hence adding that project tag so other people who don't know or don't care about team tags can also find this task when searching via projects. Please set appropriate project tags when possible. Thanks!

STran renamed this task from Log when a user enables or disables IP Info from Special:Preferences to Log when a user agrees or disagrees with the use agreemenet.Mar 25 2022, 2:34 AM
STran renamed this task from Log when a user agrees or disagrees with the use agreemenet to Log when a user agrees or disagrees with the use agreement.
STran updated the task description. (Show Details)
STran added a subscriber: Tchanders.

cc @Tchanders re: T296472#7805708 Feel free to disagree (this is just how the patch I wrote for T296472 shook out and it made sense to me to split the tickets to reflect the practical solution)

Change 773672 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/IPInfo@master] Add EventLogging for enable/disable IPInfo events

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

^ that's a bad copy pasta. That patch isn't for this ticket at all. Sorry!

Change 776159 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/IPInfo@master] Add EventLogging when user agrees or disagrees with use terms

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

Change 776159 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Add EventLogging when user agrees or disagrees with use terms

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