Steps to replicate the issue (include links if applicable):
- Find an event with contribution tracking enabled
- Make an edit somewhere
- When prompted, choose to associate the edit with the event
What happens?:
Association doesn't happen. Checking mw-error.log shows the following error:
my_wiki: [6211a7787db688d60cd84f88] [no req] InvalidArgumentException: Mismatching wiki ID my_wiki
#0 /var/www/html/w/extensions/CampaignEvents/src/EventContribution/EventContributionComputeMetrics.php(120): MediaWiki\Revision\RevisionRenderer->getRenderedRevision()
#1 /var/www/html/w/extensions/CampaignEvents/src/EventContribution/EventContributionComputeMetrics.php(101): MediaWiki\Extension\CampaignEvents\EventContribution\EventContributionComputeMetrics->countInternalLinksInRevision()
#2 /var/www/html/w/extensions/CampaignEvents/src/EventContribution/EventContributionComputeMetrics.php(65): MediaWiki\Extension\CampaignEvents\EventContribution\EventContributionComputeMetrics->getInternalLinksDelta()
#3 /var/www/html/w/extensions/CampaignEvents/src/EventContribution/EventContributionJob.php(48): MediaWiki\Extension\CampaignEvents\EventContribution\EventContributionComputeMetrics->computeEventContribution()
#4 /var/www/html/w/includes/jobqueue/JobRunner.php(381): MediaWiki\Extension\CampaignEvents\EventContribution\EventContributionJob->run()
#5 /var/www/html/w/includes/jobqueue/JobRunner.php(339): MediaWiki\JobQueue\JobRunner->doExecuteJob()
#6 /var/www/html/w/includes/jobqueue/JobRunner.php(234): MediaWiki\JobQueue\JobRunner->executeJob()
#7 /var/www/html/w/maintenance/runJobs.php(107): MediaWiki\JobQueue\JobRunner->run()
#8 /var/www/html/w/maintenance/includes/MaintenanceRunner.php(696): RunJobs->execute()
#9 /var/www/html/w/maintenance/doMaintenance.php(102): MediaWiki\Maintenance\MaintenanceRunner->run()
#10 /var/www/html/w/maintenance/runJobs.php(150): require_once(string)
#11 {main}my_wiki is the ID of the wiki where everything is happening: the event, the edit, the API request to associate the two.
I can currently reproduce this with every edit, although it's weird because it used to work until a few days ago.
What should have happened instead?:
It should go through!
Other information (browser name/version, screenshots, etc.):
The error message should really print both the revision's wiki ID AND the expected ID. I made that change locally, and it shows that while the revision has the full my_wiki, the expected value is just false (shortcut meaning "local"). I haven't verified if this is a bug in the revision backend or not.