Page MenuHomePhabricator

EditAttemptStep Migration to (monoschema) MP
Closed, InvalidPublic

Description

Goal: Migrate Edit Attempt Step Schema to the Metrics Platform.
Tasks
  • Configured a stream using the Metrics Platform Client to duplicate the data captured by the current EditAttemptStep Schema
 Notes
  1. The instruments in the DiscussionTools and MobileFrontend extensions are very similar and we should be able to migrate them in precisely the same way

Related Objects

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
ppelberg moved this task from Backlog to Triaged on the DiscussionTools board.
ppelberg added a subscriber: phuedx.

Notes on the EAS instrument's (down)sampling rates:

DiscussionTools
  • Default: 6.25% of all pageviews
  • Currently: 100% of all pageviews ($wgDTEditAttemptStepOversample is truthy on all wikis)
  • Can also be set to 100% of all pageviews by third-party extensions
    • GrowthExperiments does this when the user clicks a suggested edit card on their newcomer homepage.
MobileFrontend
  • 6.25% of all pageviews
  • Can also be set to 100% of all pageviews by third-party extensions
    • GrowthExperiments does this when the user clicks a suggested edit card on their newcomer homepage
  • Can also be when the user is using a certain wikitext editor
    • On some wikis this is the case for all wikitext editors
VisualEditor & WikiEditor
  • 6.25% of all editing sessions
  • Can also be set to 100% of all pageviews by third-party extensions
    • GrowthExperiments does this when the user clicks a suggested edit card on their newcomer homepage
  • The editing session ID can be overridden by third-party extensions

Change 803327 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/MobileFrontend@master] schemaEditAttemptStep: Also log EditAttemptStep events via Metrics Platform

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

Change 803889 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/VisualEditor@master] Also log EditAttemptStep events via Metrics Platform

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

Hey, @DLynch/Editing! The Metrics Platform team (read: @EChetty and myself) would like to move forward with getting data from the Metrics Platform implementations of the EAS instrument. We think that T310693: Make Metrics Platform Clients record sampling rate and unit in the event and T311629: Change agent_client_platform_family context attribute values should be worked on but shouldn't block the review of the patches that have been submitted. Would it be possible to schedule these reviews?

Change 798830 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] logger: Also log EditAttemptStep events via Metrics Platform

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

Change 803889 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Also log EditAttemptStep events via Metrics Platform

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

Change 803327 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] schemaEditAttemptStep: Also log EditAttemptStep events via Metrics Platform

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

Change 826234 had a related patch set uploaded (by Phuedx; author: Phuedx):

[operations/mediawiki-config@master] testwiki: Add mediawiki.edit_attempt stream

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

Change 826234 merged by jenkins-bot:

[operations/mediawiki-config@master] testwiki: Add mediawiki.edit_attempt stream

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

Mentioned in SAL (#wikimedia-operations) [2022-09-13T13:22:03Z] <lucaswerkmeister-wmde@deploy1002> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:826234|testwiki: Add mediawiki.edit_attempt stream (T309013)]] (1/2) (duration: 03m 39s)

Mentioned in SAL (#wikimedia-operations) [2022-09-13T13:25:48Z] <lucaswerkmeister-wmde@deploy1002> Synchronized wmf-config/InitialiseSettings-labs.php: Config: [[gerrit:826234|testwiki: Add mediawiki.edit_attempt stream (T309013)]] (2/2) (duration: 03m 33s)

phuedx moved this task from Discussed to QA/Review on the Metrics Platform Backlog board.

Status update: The instrument was enabled on testwiki ~10 days ago and, as of this morning, the event.mediawiki_edit_attempt Hive table now has 400+ rows in it. Is this enough to double-check the shape of the events that are being logged?

Change 855990 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/WikiEditor@master] ext.wikiEditor: Also log EditAttemptStep events via Metrics Platform

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

Change 855990 merged by jenkins-bot:

[mediawiki/extensions/WikiEditor@master] ext.wikiEditor: Also log EditAttemptStep events via Metrics Platform

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

Following up on this task - has anyone from Product Analytics been assigned to validate data? @EChetty in your opinion is this schema ready for iOS data integration? Thanks.

I think there's validation occurring over in T320281.

Thank you @DLynch! Will follow up with Maya. I am interested in the issue you mentioned there w/r/t edit step event tracking, will follow that ticket.

Hey @SNowick_WMF

In theory, this should be okay to integrate but the events generated will be incomplete.
This task is currently blocked by T281762 to track the sever-side events to complete the loop so to speak. (By blocked - we are stuck currently trying to find someone who is confident they know enough to review the patch - which has proved harder that we realised)
I would personally would wait on this until we are unblocked and @Mayakp.wiki & @phuedx gives the all okay.

mpopov renamed this task from EditAttemptStep Migration to MP to EditAttemptStep Migration to (monoschema) MP.Feb 5 2024, 8:59 PM
mpopov closed this task as Invalid.
mpopov updated the task description. (Show Details)

@VirginiaPoundstone @WDoranWMF I renamed this task to refer to the (now deprecated) monoschema version of Metrics Platform. The partial migrations of the instruments were removed (see T351337, T351335).

EditAttemptStep will need to be migrated to the (new) Core Interaction API version of Metrics Platform eventually but that should probably be a separate ticket (and a hypothesis in the next annual plan).