Page MenuHomePhabricator

Cannot require undefined file resources/src/mediawiki.editRecovery/config.json
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

The following error is shown:

Error: Cannot require undefined file resources/src/mediawiki.editRecovery/config.json
    require startup.js:1011
    js storage.js:5
    require startup.js:1018
    setup SpecialEditRecovery.vue:6

And no list of saved edits is shown.

What should have happened instead?:

No error, and a correct list of stored edit data.

Software version (skip for WMF-hosted wikis like Wikipedia):

MediaWiki 861fa05cc7dc3e1fbfd33db9f0872b9884b56a86

Other information (browser name/version, screenshots, etc.):

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 987034 had a related patch set uploaded (by Sohom Datta; author: Sohom Datta):

[mediawiki/core@master] Add config.json as a dependency to all editRecovery modules using storage.js

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

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

[mediawiki/core@master] Edit Recovery: Make config.json also available to the special page

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

Change 987034 abandoned by Sohom Datta:

[mediawiki/core@master] Add config.json as a dependency to all editRecovery modules using storage.js

Reason:

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

Change 987035 merged by jenkins-bot:

[mediawiki/core@master] Edit Recovery: Add config.json to special page and postEdit

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

@Samwilson Should the addJsConfigVars( 'wgEditRecoveryExpiry',… ) code on on SpecialEditRecovery.php be removed, or is that still needed/used for something else?

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

[mediawiki/core@wmf/1.42.0-wmf.12] Edit Recovery: Add config.json to special page and postEdit

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

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

[mediawiki/core@master] Edit Recovery: Remove unused addJsConfigVars from SpecialEditRecovery.php

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

Oops, yes good point! Removing it now.

Change 986657 merged by jenkins-bot:

[mediawiki/core@wmf/1.42.0-wmf.12] Edit Recovery: Add config.json to special page and postEdit

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

Change 987210 merged by jenkins-bot:

[mediawiki/core@master] Edit Recovery: Remove unused addJsConfigVars from SpecialEditRecovery.php

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