Page MenuHomePhabricator

Develop an API that enables Edit Checks/Suggestions to be kept in sync with Growth Experiments
Open, HighPublic3 Estimated Story Points

Description

This task involves the work of implementing an API that would enable the configuration values governing how "Add a link" gets presented in the newcomer homepage (MediaWiki:GrowthExperimentsSuggestedEdits.json) be automatically mirrored within the configuration values governing how the "Add a link" suggestion gets presented within Suggestion Mode.

To enable the above, the Editing Team will implement a new API that will:

  1. Listen for changes to MediaWiki:GrowthExperimentsSuggestedEdits.json
  2. Update to MediaWiki:Editcheck-config.json to reflect relevant changes in MediaWiki:GrowthExperimentsSuggestedEdits.json
NOTE: The API this ticket will introduce will be relevant now and in a potential future wherein EditCheck-config.json is migrated to the Community Configuration extension (T372927)

Requirements

MediaWiki:GrowthExperimentsSuggestedEdits.jsonMirror in MediaWiki:Editcheck-config.json?MediaWiki:Editcheck-config.json equivalentNotes
This task is disabledTBDshowAsSuggestion: false
Articles containing templates defined here will not be shown to users as tasks for this task type✅ YeslacksTemplate
Articles containing categories defined here will not be shown to users as tasks for this task type✅ YesnotInCategory
Destination page for learning more about add link task type❌ Not nowN/ALinks shown within Suggestion Cards are defined in interface messages not within the config file. Although, importing could be supported if we deemed it necessary.
Maximum number of links to show per task❌ NoN/APer T421968#11801073, if/when we come to learn too many links are being suggested within articles, we'll seek to increase the predictionThreshold
List of excluded sections from the Add link task✅ YesignoreSections
The maximum number of "Add a link" suggested tasks a newcomer can complete daily❌ Not nowN/AWe assume the risk of someone completing a lot of link suggestions using Suggestion Mode to be low enough to omit this ceiling for now
Weight of underlinked articles❌ NoN/AThis value is specific to the newcomer homepage, per T421968#11795735
Minimum required link score✅ YespredictionThreshold
Stop suggesting "Add a link" tasks based on newcomers' total edits❌ Not nowN/ASuggestions don't currently respect account-based limits; this functionality will be implemented in TICKET; timing TBD

Done

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
ppelberg updated the task description. (Show Details)
ppelberg triaged this task as High priority.Wed, Apr 8, 9:49 PM
ppelberg updated the task description. (Show Details)

Change #1269074 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] TextMatchEditCheck: extract getImportedConfig into a utility function

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

Change #1269075 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] SuggestedLinkEditCheck: by default import the config of the growth task

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

ppelberg updated the task description. (Show Details)

Change #1269074 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] TextMatchEditCheck: extract getImportedConfig into a utility function

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