Extension:GrowthExperiments/Technical documentation/Structured tasks/Add a link

Project page: https://www.mediawiki.org/wiki/Growth/Personalized_first_day/Structured_tasks/Add_a_link

Main phab epic: https://phabricator.wikimedia.org/T252822

Figma specs: https://www.figma.com/file/2SONd8P1tsexIB5coMOp8h/Add-links-structured-task-v1.0

Infrastructure: https://wikitech.wikimedia.org/wiki/Add_Link

Local development edit

To tag an article for add a link:

php extensions/CirrusSearch/maintenance/UpdateWeightedTags.php --tagType 'recommendation.link' --page $pageTitle

To create a link recommendation entry with a static JSON:

php extensions/GrowthExperiments/maintenance/insertLinkRecommendation.php —title="$pageTitle" --json-file="$pathToJSON"

In LocalSettings.php

// Specify the wiki from which the link recommendations are generated
$wgGELinkRecommendationServiceWikiIdMasquerade = 'enwiki';

// Specify the API token to use with the link recommendation service
$wgGELinkRecommendationServiceAccessToken = 'your api token';
$wgGELinkRecommendationServiceUrl = 'https://api.wikimedia.org/service/linkrecommendation';