Page MenuHomePhabricator

CommunityRequests has an undeclared dependency on WikimediaMessages
Closed, ResolvedPublicBUG REPORT

Description

The wikimedia-copyrightwarning message is used from WikimediaMessages, but that extension isn't a dependency of CommunityRequets. This causes ResourcesTest to fail when WikimediaMessages isn't installed:

 ./vendor/bin/phpunit tests/phpunit/structure/ResourcesTest.php --filter testMissingMessages
Using PHP 8.3.6
Running with MediaWiki settings because there might be integration tests
PHPUnit 9.6.21 by Sebastian Bergmann and contributors.

F                                                                   1 / 1 (100%)

Time: 00:00.753, Memory: 70.50 MB

There was 1 failure:

1) ResourcesTest::testMissingMessages
Message 'wikimedia-copyrightwarning' required by 'ext.communityrequests.intake' must exist
Failed asserting that false is true.

mediawiki/tests/phpunit/structure/ResourcesTest.php:119

To fix this, a new message should be added, called communityrequests-copyrightwarning, which can then be overridden in the ResourceLoader factory in AbstractWishlistSpecialPage if WikimediaMessages is installed.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Samwilson renamed this task from Remove dependency on WikimediaMessages to CommunityRequests has an undeclared dependency on WikimediaMessages.Sep 7 2025, 11:50 AM
Samwilson changed the subtype of this task from "Task" to "Bug Report".

Change #1185515 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/CommunityRequests@master] Load copyright warning message in the backend

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

Change #1185878 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/CommunityRequests@master] Update AbstractRenderer to implement MessageLocalizer

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

Change #1185880 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/CommunityRequests@master] Update Jest's mockMwConfigGet to be called multiple times

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

Change #1185880 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Update Jest's mockMwConfigGet to be called multiple times

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

Change #1185878 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Update AbstractRenderer to implement MessageLocalizer

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

Samwilson triaged this task as Medium priority.Sep 10 2025, 10:50 AM

Change #1185515 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Load copyright warning message in the backend

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

QA notes: in addition to the test command above now working, the other way to QA this is to check that the correct copyright notice is shown even when WikimediaMessages is not installed.

MusikAnimal subscribed.

FYI George is very overworked as he is covering multiple teams. I see this kind of task as more of an engineer-y thing that doesn't really need QA expertise. All that is entailed is verifying a message is shown with WikimediaMessages disabled, and us engineers can do that :-P

Closing as resolved!