Page MenuHomePhabricator

alex-mashin (alex-mashin)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Tuesday

  • Clear sailing ahead.

User Details

User Since
Nov 29 2014, 10:11 AM (278 w, 17 h)
Availability
Available
LDAP User
Alexander Mashin
MediaWiki User
Alex Mashin [ Global Accounts ]

Recent Activity

Mon, Mar 16

alex-mashin added a comment to T247629: NS_MODULE not defined in LocalSettings.php.

No you did something different again; You should use $wgNamespaceProtection [828] = ['editmodule']; as it's all you need. You needn't to 'basically' use something else. NS_MODULE is meant to be used internally in the extension code.

I did it in the hope that this issue will be resolved. The code fragment to which you referred still doesn't explain to me why namespace constants defined in some extensions are not available in LocalSettings.php while others are (like SMW_NS_PROPERTY).

Mon, Mar 16, 12:46 PM · MediaWiki-Configuration, MediaWiki-extensions-Scribunto

Sat, Mar 14

alex-mashin added a comment to T246127: updateCollation.php throws an error.

I applied the last patch manually, and the maintenance script started to work.

Sat, Mar 14, 10:02 AM · MW-1.35-notes (1.35.0-wmf.21; 2020-02-25), MW-1.34-notes, MediaWiki-Maintenance-scripts
alex-mashin added a comment to T247629: NS_MODULE not defined in LocalSettings.php.

That's what I did;

No, you used $wgNamespaceProtection [NS_MODULE] = ['editmodule']; that's not the same thing with what I said.

No, when I found out the absence of NS_MODULE, I had to switch to:

if (defined ('NS_MODULE')) {
	$wgNamespaceProtection [NS_MODULE] = ['editmodule'];
} else {
	$wgNamespaceProtection [828] = ['editmodule'];
}

So, I *eventually* had to do basically what you said.

Sat, Mar 14, 8:36 AM · MediaWiki-Configuration, MediaWiki-extensions-Scribunto
alex-mashin added a comment to T247629: NS_MODULE not defined in LocalSettings.php.

NS_MODULE is a non canonical namespace, you must use the numerical constant

$wgNamespaceProtection[ 828 ] = [ 'editmodule' ];
Sat, Mar 14, 8:03 AM · MediaWiki-Configuration, MediaWiki-extensions-Scribunto
alex-mashin added a comment to T247629: NS_MODULE not defined in LocalSettings.php.

Not defined where?

Sat, Mar 14, 6:17 AM · MediaWiki-Configuration, MediaWiki-extensions-Scribunto

Fri, Mar 13

alex-mashin created T247631: updateCollation.php does not work.
Fri, Mar 13, 7:26 PM · MediaWiki-Maintenance-scripts
alex-mashin created T247629: NS_MODULE not defined in LocalSettings.php.
Fri, Mar 13, 6:55 PM · MediaWiki-Configuration, MediaWiki-extensions-Scribunto

Feb 12 2020

Florian awarded T243667: Cannot log in when username contains spaces in PHP 7.4: "wrong username or password" a Love token.
Feb 12 2020, 8:51 PM · Upstream, PHP 7.4 support, MediaWiki-User-login-and-signup

Feb 9 2020

alex-mashin created T244660: A slow query in SqlBagOStuff::deleteServerObjectsExpiringBefore.
Feb 9 2020, 10:40 AM · Performance Issue, MediaWiki-General

Feb 8 2020

alex-mashin added a comment to T243724: $wgUrlProtocols [] = '/' breaks wikilinks to subpages since MW 1.32 or 1.33.

Perhaps, wikilinks should again be parsed before external links?

Feb 8 2020, 5:47 AM · MediaWiki-General

Feb 2 2020

alex-mashin added a comment to T243724: $wgUrlProtocols [] = '/' breaks wikilinks to subpages since MW 1.32 or 1.33.

For the time being, I replaced $wgUrlProtocols [] = '/'; with $wgUrlProtocols [] = $wgScriptPath; to achieve the desired effect, although I am not yet sure whether that has broken something else.

Feb 2 2020, 11:45 AM · MediaWiki-General

Jan 30 2020

alex-mashin created T243960: Semantic Glossary: Use of ExtensionRegistry::load was deprecated in MediaWiki 1.34.
Jan 30 2020, 3:03 PM · MediaWiki-extensions-Semantic-Glossary

Jan 26 2020

alex-mashin created T243724: $wgUrlProtocols [] = '/' breaks wikilinks to subpages since MW 1.32 or 1.33.
Jan 26 2020, 8:15 PM · MediaWiki-General

Jan 25 2020

alex-mashin updated the task description for T243667: Cannot log in when username contains spaces in PHP 7.4: "wrong username or password".
Jan 25 2020, 12:16 PM · Upstream, PHP 7.4 support, MediaWiki-User-login-and-signup
alex-mashin created T243667: Cannot log in when username contains spaces in PHP 7.4: "wrong username or password".
Jan 25 2020, 12:14 PM · Upstream, PHP 7.4 support, MediaWiki-User-login-and-signup

Dec 18 2019

alex-mashin added a comment to T239506: External Data: automatically create the table ed_url_cache on running update.php.

Will anybody review the code in https://gerrit.wikimedia.org/r/553857?

Dec 18 2019, 2:57 AM · Patch-For-Review, MediaWiki-extensions-ExternalData

Dec 2 2019

alex-mashin added a comment to T239506: External Data: automatically create the table ed_url_cache on running update.php.

@Yaron_Koren, when I found out that a certain site had banned my wiki's IP for downloading currency exchange rates too often (and I was sure that caching was already enabled); and that I had to create the cache table manually, apart from finding another source of exchange rates; and that the table that I created using the SQL code from the wiki page was wrong (caused MediaWiki crash on non-Latin URIs due to wrong collation)—I decided to automate table creation.

Dec 2 2019, 9:02 PM · Patch-For-Review, MediaWiki-extensions-ExternalData

Dec 1 2019

alex-mashin created T239525: Do not echo the message externaldata-db-could-not-get-url.
Dec 1 2019, 6:50 AM · User-DannyS712, MediaWiki-extensions-ExternalData

Nov 30 2019

alex-mashin updated the task description for T239512: Allow use of stale cache in {{#get_web_data:}}.
Nov 30 2019, 5:10 PM · Patch-For-Review, MediaWiki-extensions-ExternalData
alex-mashin created T239512: Allow use of stale cache in {{#get_web_data:}}.
Nov 30 2019, 5:01 PM · Patch-For-Review, MediaWiki-extensions-ExternalData
alex-mashin assigned T239506: External Data: automatically create the table ed_url_cache on running update.php to Yaron_Koren.
Nov 30 2019, 8:58 AM · Patch-For-Review, MediaWiki-extensions-ExternalData
alex-mashin added a comment to T239506: External Data: automatically create the table ed_url_cache on running update.php.


I made a patch. But where should I try to upload it? At phabricator? Github? Gerrit? It's confusing.

Nov 30 2019, 8:56 AM · Patch-For-Review, MediaWiki-extensions-ExternalData
alex-mashin created T239506: External Data: automatically create the table ed_url_cache on running update.php.
Nov 30 2019, 8:50 AM · Patch-For-Review, MediaWiki-extensions-ExternalData

Nov 7 2019

alex-mashin added a comment to T237613: Broken logging.

@alex-mashin: Basically a duplicate of T232624: Class 'LoggerFactory' not found? But no idea which branch / versions you tested this with...

MediaWiki 1.31.5 (8af9c78)

Nov 7 2019, 2:56 PM · MediaWiki-extensions-ExternalData
alex-mashin created T237613: Broken logging.
Nov 7 2019, 9:39 AM · MediaWiki-extensions-ExternalData

Sep 19 2019

alex-mashin updated the task description for T233278: wikimedia/php-session-serializer 1.0.4 is not tagged, despite being required by MediaWiki 1.30.
Sep 19 2019, 6:35 AM · MediaWiki-General, php-session-serializer
alex-mashin updated the task description for T233278: wikimedia/php-session-serializer 1.0.4 is not tagged, despite being required by MediaWiki 1.30.
Sep 19 2019, 6:35 AM · MediaWiki-General, php-session-serializer
alex-mashin created T233278: wikimedia/php-session-serializer 1.0.4 is not tagged, despite being required by MediaWiki 1.30.
Sep 19 2019, 6:34 AM · MediaWiki-General, php-session-serializer

Sep 11 2019

alex-mashin closed T230269: Add regular expression matching to {{#get_web_data}} and {{#get_file_data}} as Resolved.
Sep 11 2019, 4:33 PM · MediaWiki-extensions-ExternalData
alex-mashin added a watcher for MediaWiki-extensions-ExternalData: alex-mashin.
Sep 11 2019, 4:30 PM

Aug 25 2019

alex-mashin added a comment to T230260: Page view triggers ResourceLoaderWikiModule db queries for enabled gadgets (from OutputPage).

Looks good now

Aug 25 2019, 6:01 AM · Performance-Team, MediaWiki-ResourceLoader, MediaWiki-Cache, MediaWiki-extensions-Gadgets

Aug 17 2019

alex-mashin renamed T230269: Add regular expression matching to {{#get_web_data}} and {{#get_file_data}} from Add regular expression format to {{#get_web_data}} to Add regular expression matching to {{#get_web_data}} and {{#get_file_data}}.
Aug 17 2019, 3:15 AM · MediaWiki-extensions-ExternalData

Aug 14 2019

alex-mashin added a comment to T230260: Page view triggers ResourceLoaderWikiModule db queries for enabled gadgets (from OutputPage).

Is the query from page views (OutputPage), from the startup module (load.php), or from the gadget module response (load.php)?

Page views.

Aug 14 2019, 12:11 PM · Performance-Team, MediaWiki-ResourceLoader, MediaWiki-Cache, MediaWiki-extensions-Gadgets

Aug 10 2019

alex-mashin created T230269: Add regular expression matching to {{#get_web_data}} and {{#get_file_data}}.
Aug 10 2019, 2:11 PM · MediaWiki-extensions-ExternalData
alex-mashin created T230260: Page view triggers ResourceLoaderWikiModule db queries for enabled gadgets (from OutputPage).
Aug 10 2019, 11:08 AM · Performance-Team, MediaWiki-ResourceLoader, MediaWiki-Cache, MediaWiki-extensions-Gadgets

Jul 16 2019

alex-mashin added a comment to T215726: MessageCache does not work due to WAN cache stub.

@Krinkle, my $wgMainCacheType was set to CACHE_ACCEL. If the task author's wasn't, his $wgMessageCacheType was, and was effectively ignored.

Jul 16 2019, 1:09 AM · Performance-Team (Radar), MediaWiki-Cache

Jul 15 2019

alex-mashin renamed T215726: MessageCache does not work due to WAN cache stub from MessageCache does not work due to empty hash to MessageCache does not work due to WAN cache stub.
Jul 15 2019, 5:02 AM · Performance-Team (Radar), MediaWiki-Cache

Jul 14 2019

alex-mashin added a comment to T215726: MessageCache does not work due to WAN cache stub.

I spent my whole weekend to find a workaround for this bug, tearing through undebuggable spaghetty callback hell.

Jul 14 2019, 4:26 PM · Performance-Team (Radar), MediaWiki-Cache

Jul 10 2019

alex-mashin renamed T215726: MessageCache does not work due to WAN cache stub from MessageCache failed with/without $wgMessageCacheType+$wgCacheDirectory to MessageCache does not work due to empty hash.
Jul 10 2019, 1:42 AM · Performance-Team (Radar), MediaWiki-Cache

Jul 6 2019

alex-mashin added a comment to T215726: MessageCache does not work due to WAN cache stub.

It seems that I have a similar problem, too (MW 1.31.1, PHP 7.2).

Jul 6 2019, 7:15 AM · Performance-Team (Radar), MediaWiki-Cache

Dec 4 2018

alex-mashin added a comment to T207952: wikiapiary not updating.

https://www.wikiapiary.com/wiki/Traditio not updated.

Dec 4 2018, 11:56 AM · WikiApiary

Nov 11 2018

alex-mashin closed T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29 as Resolved.
Nov 11 2018, 7:01 AM · MediaWiki-extensions-ExternalData
alex-mashin closed T208643: TimedMediaHandler is not fully configurable: Class 'WebVideoTranscode' not found as Resolved.
Nov 11 2018, 7:01 AM · TimedMediaHandler
alex-mashin added a comment to T208643: TimedMediaHandler is not fully configurable: Class 'WebVideoTranscode' not found.

OK, thanks, I changed the configuration accordingly.

Nov 11 2018, 7:00 AM · TimedMediaHandler
alex-mashin closed T208669: MobileFrontend breaks MediaWiki 1.31 as Invalid.
Nov 11 2018, 6:59 AM · Readers-Web-Backlog (Tracking), Reading-Web-Third-Party-Support, MobileFrontend
alex-mashin added a comment to T208669: MobileFrontend breaks MediaWiki 1.31.

The issue has gone away. Most probably due to rebuilding the localisation cachem which I had done in connection to another bug.

Nov 11 2018, 6:59 AM · Readers-Web-Backlog (Tracking), Reading-Web-Third-Party-Support, MobileFrontend
alex-mashin added a comment to T208669: MobileFrontend breaks MediaWiki 1.31.

You also may want to check you have the latest Minerva version installed in case it might be trying to use this class.

Nov 11 2018, 6:58 AM · Readers-Web-Backlog (Tracking), Reading-Web-Third-Party-Support, MobileFrontend
alex-mashin updated the task description for T208669: MobileFrontend breaks MediaWiki 1.31.
Nov 11 2018, 6:43 AM · Readers-Web-Backlog (Tracking), Reading-Web-Third-Party-Support, MobileFrontend

Nov 8 2018

alex-mashin added a comment to T208643: TimedMediaHandler is not fully configurable: Class 'WebVideoTranscode' not found.

I used this:

$wgEnabledTranscodeSet = [
    '160p.webm',
    '240p.webm',
    '360p.webm',
    '480p.webm',
    '720p.webm',
    '1080p.webm',
];
Nov 8 2018, 7:07 PM · TimedMediaHandler

Nov 7 2018

alex-mashin added a comment to T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29.

Checking out branch 1.32 (MW stayed at 1.31) and running php maintenance/rebuildLocalisationCache.php --force helped. The extension loads with wfLoadExtension ().

Nov 7 2018, 2:13 PM · MediaWiki-extensions-ExternalData

Nov 4 2018

alex-mashin updated the task description for T208669: MobileFrontend breaks MediaWiki 1.31.
Nov 4 2018, 8:36 AM · Readers-Web-Backlog (Tracking), Reading-Web-Third-Party-Support, MobileFrontend
alex-mashin created T208669: MobileFrontend breaks MediaWiki 1.31.
Nov 4 2018, 8:35 AM · Readers-Web-Backlog (Tracking), Reading-Web-Third-Party-Support, MobileFrontend
alex-mashin added a comment to T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29.

What is in your line 903, as there is no foreach in https://phabricator.wikimedia.org/diffusion/EXDA/browse/REL1_29/ED_Utils.php$903 ?

Nov 4 2018, 7:13 AM · MediaWiki-extensions-ExternalData
alex-mashin renamed T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29 from ExternalData doesn't load to ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29.
Nov 4 2018, 6:02 AM · MediaWiki-extensions-ExternalData
alex-mashin added a comment to T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29.

Also see https://lists.wikimedia.org/pipermail/mediawiki-l/2015-February/044096.html

Read the thread, and don't think it is relevant here.

Nov 4 2018, 6:01 AM · MediaWiki-extensions-ExternalData
alex-mashin added a comment to T208643: TimedMediaHandler is not fully configurable: Class 'WebVideoTranscode' not found.

The idea is to add three items to a array at once. This is not the problem. That the class WebVideoTranscode is not available from LocalSettings.php is.

Nov 4 2018, 4:28 AM · TimedMediaHandler

Nov 3 2018

alex-mashin added a comment to T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29.

However, under MediaWiki 1.29 it doesn't work anyway.

Nov 3 2018, 5:15 PM · MediaWiki-extensions-ExternalData
alex-mashin added a comment to T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29.

This error happens only if $wgDevelopmentWarnings = true. Don't know if this is ExternalData's or MediaWiki's bug.

Nov 3 2018, 4:44 PM · MediaWiki-extensions-ExternalData
alex-mashin added a project to T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29: MediaWiki-ResourceLoader.
Nov 3 2018, 2:03 PM · MediaWiki-extensions-ExternalData
alex-mashin added a project to T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29: VisualEditor.
Nov 3 2018, 2:02 PM · MediaWiki-extensions-ExternalData
alex-mashin added a comment to T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29.

The same story after upgrading to MediaWiki 1.31.1, but the backtrace now involves Visual Editor and ResourceLoader:

PHP message: PHP Stack trace:
PHP message: PHP   1. {main}() /var/www/wiki/w/index.php:0
PHP message: PHP   2. MediaWiki->run() /var/www/wiki/w/index.php:42
PHP message: PHP   3. MWExceptionHandler::handleException() /var/www/wiki/w/includes/MediaWiki.
2018/11/03 20:57:33 [error] 32644#32644: *306 FastCGI sent in stderr: "PHP message: PHP Notice:  "" is not a valid magic word for "get_web_data" [Called from Language::getMagic in /var/www/wiki/w/languages/Language.php at line 3181] in /var/www/wiki/w/includes/debug/MWDebug.php on line 309
PHP message: PHP Stack trace:
PHP message: PHP   1. {main}() /var/www/wiki/w/load.php:0
PHP message: PHP   2. ResourceLoader->respond() /var/www/wiki/w/load.php:51
PHP message: PHP   3. ResourceLoader->getCombinedVersion() /var/www/wiki/w/includes/resourceloader/ResourceLoader.php:759
PHP message: PHP   4. array_map() /var/www/wiki/w/includes/resourceloader/ResourceLoader.php:678
PHP message: PHP   5. ResourceLoader->{closure:/var/www/wiki/w/includes/resourceloader/ResourceLoader.php:663-678}() /var/www/wiki/w/includes/resourceloader/ResourceLoader.php:678
PHP message: PHP   6. ResourceLoaderStartUpModule->getVersionHash() /var/www/wiki/w/includes/resourceloader/ResourceLoader.php:665
PHP message: PHP   7. ResourceLoaderStartUpModule->getDefinitionSummary() /var/www/wiki/w/includes/resourceloader/ResourceLoaderModule.php:831
PHP message: PHP   8. ResourceLoaderStartUpModule->getAllModuleHashes() /var/www/wiki/w/includes/resourceloader/ResourceLoaderStartUpModule.php:422
PHP message: PHP   9. ResourceLoader->getCombinedVersion() /var/www/wiki/w/includes/resourceloader/ResourceLoaderStartUpModule.php:449
PHP message: PHP  10. array_map() /var/www/wiki/w/includes/resourceloader/ResourceLoader.php:678
PHP message: PHP  11. ResourceLoader->{closure:/var/www/wiki/w/includes/resourceloader/ResourceLoader.php:663-678}() /var/www/wiki/w/includes/resourceloader/ResourceLoader.php:678
PHP message: PHP  12. VisualEditorDataModule->getVersionHash() /var/www/wiki/w/includes/resourceloader/ResourceLoader.php:665
PHP message: PHP  13. VisualEditorDataModule->getModuleContent() /var/www/wiki/w/includes/resourceloader/ResourceLoaderModule.php:828
PHP message: PHP  14. VisualEditorDataModule->buildContent() /var/www/wiki/w/includes/resourceloade
Nov 3 2018, 2:01 PM · MediaWiki-extensions-ExternalData
alex-mashin renamed T208643: TimedMediaHandler is not fully configurable: Class 'WebVideoTranscode' not found from TimedMediaHandler is not loaded: Class 'WebVideoTranscode' not found to TimedMediaHandler is not fully configurable: Class 'WebVideoTranscode' not found.
Nov 3 2018, 12:10 PM · TimedMediaHandler
alex-mashin created T208643: TimedMediaHandler is not fully configurable: Class 'WebVideoTranscode' not found.
Nov 3 2018, 12:10 PM · TimedMediaHandler

Nov 1 2018

alex-mashin added a comment to T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29.

Anybody reads this?

Nov 1 2018, 3:00 AM · MediaWiki-extensions-ExternalData

Oct 30 2018

alex-mashin created T208335: ExternalData doesn't load if $wgDevelopmentWarnings = true or MW version is 1.29.
Oct 30 2018, 5:12 PM · MediaWiki-extensions-ExternalData

Oct 17 2018

alex-mashin updated the task description for T207262: Incorrect treatment of Javascript template literal by ResourceLoader.
Oct 17 2018, 8:35 AM · Performance-Team, MediaWiki-ResourceLoader
alex-mashin created T207262: Incorrect treatment of Javascript template literal by ResourceLoader.
Oct 17 2018, 8:32 AM · Performance-Team, MediaWiki-ResourceLoader

May 6 2018

alex-mashin added a comment to T176370: Migrate to PHP 7 in WMF production.

but I think we should also have Scribunto for other frameworks, notably Javascript/ECMASCript like Node.js,

It will not be easy to expand Scribunto in any way. See comments in T189767. It seems that the authors of Scribunto view any proposals regarding it as an attack.

May 6 2018, 3:54 AM · MW-1.34-notes (1.34.0-wmf.22; 2019-09-10), CPT Initiatives (PHP7 (TEC4)), Patch-For-Review, TechCom-RFC (TechCom-RFC-Closed), User-ArielGlenn, HHVM, Operations

Mar 16 2018

alex-mashin updated the task description for T189767: RFC: Future of Scribunto.
Mar 16 2018, 6:38 AM · Proposal, LuaSandbox, MediaWiki-extensions-Scribunto
alex-mashin added a comment to T189767: RFC: Future of Scribunto.

Several years before Scribunto, a proposal to install Winter extension on WikiMedia sites was rejected.

Do you have a link to that discussion?

Sorry, it was abot ten years ago, and I did not take part in it, only watched; and cannot find it now. Could be in some mailing list or IRC.

Mar 16 2018, 5:01 AM · Proposal, LuaSandbox, MediaWiki-extensions-Scribunto

Mar 15 2018

alex-mashin added a comment to T189767: RFC: Future of Scribunto.

The first three bugs that you have mentioned were created by myself (I intend to close them in favour of this one). I came to a conclusion that those issues are parts of a bigger picture.

Mar 15 2018, 12:02 PM · Proposal, LuaSandbox, MediaWiki-extensions-Scribunto
alex-mashin created T189767: RFC: Future of Scribunto.
Mar 15 2018, 10:48 AM · Proposal, LuaSandbox, MediaWiki-extensions-Scribunto

Feb 24 2018

alex-mashin renamed T178136: Encourage type hints for function parameters and return after moving MediaWiki to PHP 7 from Make type hints for function parameters and return compulsory after moving MediaWiki to PHP 7 to Rncougare type hints for function parameters and return after moving MediaWiki to PHP 7.
Feb 24 2018, 6:05 AM · MediaWiki-Codesniffer, Technical-Debt, MediaWiki-General
alex-mashin added a comment to T178136: Encourage type hints for function parameters and return after moving MediaWiki to PHP 7.

PHP 8 is expected to use JIT, which means that performance is lilkely to be boosted by strict typing.

Feb 24 2018, 5:58 AM · MediaWiki-Codesniffer, Technical-Debt, MediaWiki-General

Feb 22 2018

alex-mashin closed T187670: Allow functions in $wgGrammarForms as Declined.
Feb 22 2018, 3:37 PM · I18n, Patch-For-Review, MediaWiki-General

Feb 21 2018

alex-mashin added a comment to T187670: Allow functions in $wgGrammarForms.

If {{GRAMMAR}} is indeed called client-side, then it's pointless.

Feb 21 2018, 3:16 PM · I18n, Patch-For-Review, MediaWiki-General

Feb 20 2018

alex-mashin added a comment to T187670: Allow functions in $wgGrammarForms.
  1. Who talks about JavaScript? $wgGrammarForms is meant to be set in LocalSettings.php.
  2. How on earth can I know when and where wiki contributors will use {{grammar:}}? They can justifiably do it anywhere; in templates meant for the main namespace, for example.
Feb 20 2018, 12:22 PM · I18n, Patch-For-Review, MediaWiki-General

Feb 19 2018

alex-mashin added a comment to T187670: Allow functions in $wgGrammarForms.

To be able to look up in a dictionary, for example. Or to programmatically implement inflectional paradigms that are more complicated than regular expressions.

Feb 19 2018, 3:00 PM · I18n, Patch-For-Review, MediaWiki-General
alex-mashin created T187670: Allow functions in $wgGrammarForms.
Feb 19 2018, 2:01 AM · I18n, Patch-For-Review, MediaWiki-General

Jan 21 2018

alex-mashin updated the task description for T185406: Composer doesn't enable GraphViz.
Jan 21 2018, 7:32 AM · Composer, GraphViz
alex-mashin created T185406: Composer doesn't enable GraphViz.
Jan 21 2018, 7:30 AM · Composer, GraphViz

Oct 17 2017

alex-mashin updated the task description for T178136: Encourage type hints for function parameters and return after moving MediaWiki to PHP 7.
Oct 17 2017, 6:01 PM · MediaWiki-Codesniffer, Technical-Debt, MediaWiki-General

Oct 15 2017

alex-mashin added a comment to T178136: Encourage type hints for function parameters and return after moving MediaWiki to PHP 7.

declare(strict_types=1); seems more attractive but there could be some problems with hooks. Unless they are restricted to callable, perhaps.

Oct 15 2017, 6:42 AM · MediaWiki-Codesniffer, Technical-Debt, MediaWiki-General

Oct 13 2017

alex-mashin updated the task description for T178146: Add support for Lua 5.2 or 5.3 to luasandbox.
Oct 13 2017, 9:28 AM · LuaSandbox, MediaWiki-extensions-Scribunto
alex-mashin updated the task description for T178146: Add support for Lua 5.2 or 5.3 to luasandbox.
Oct 13 2017, 9:21 AM · LuaSandbox, MediaWiki-extensions-Scribunto
alex-mashin added a project to T178146: Add support for Lua 5.2 or 5.3 to luasandbox: MediaWiki-extensions-Scribunto.
Oct 13 2017, 9:15 AM · LuaSandbox, MediaWiki-extensions-Scribunto
alex-mashin created T178146: Add support for Lua 5.2 or 5.3 to luasandbox.
Oct 13 2017, 9:14 AM · LuaSandbox, MediaWiki-extensions-Scribunto
alex-mashin added a comment to T176370: Migrate to PHP 7 in WMF production.

I therefore suggest a more ambitious goal: make strict typing compulsory in MediaWiki code. This requirement can be enforced by automated testing, as far as I understand.

That's well off-topic for this task. You're welcome to file a separate task for such a proposal.

Done: T178136.

Oct 13 2017, 4:43 AM · MW-1.34-notes (1.34.0-wmf.22; 2019-09-10), CPT Initiatives (PHP7 (TEC4)), Patch-For-Review, TechCom-RFC (TechCom-RFC-Closed), User-ArielGlenn, HHVM, Operations
alex-mashin created T178136: Encourage type hints for function parameters and return after moving MediaWiki to PHP 7.
Oct 13 2017, 4:41 AM · MediaWiki-Codesniffer, Technical-Debt, MediaWiki-General

Oct 12 2017

alex-mashin added a comment to T176370: Migrate to PHP 7 in WMF production.

Is there a reason to migrate only to PHP 7.0 and not to PHP 7.1 of even 7.2, as it is going to be released soon?

Oct 12 2017, 2:18 AM · MW-1.34-notes (1.34.0-wmf.22; 2019-09-10), CPT Initiatives (PHP7 (TEC4)), Patch-For-Review, TechCom-RFC (TechCom-RFC-Closed), User-ArielGlenn, HHVM, Operations

Oct 8 2017

alex-mashin added a comment to T175229: rebuildLocalisationCache demands a localisation cache.

--force doesn't help.

Oct 8 2017, 12:41 PM · MediaWiki-Maintenance-scripts

Oct 2 2017

alex-mashin added a comment to T174532: Uncacheable queries.

Thank you, now I know that those queries could be cached in spite of the initial SET; that was my concern.

Oct 2 2017, 7:12 AM · Wikimedia-Rdbms

Sep 30 2017

alex-mashin created T177134: Nulls passed to preg_match in Cite.
Sep 30 2017, 6:55 AM · Patch-For-Review, Cite

Sep 24 2017

alex-mashin closed T176552: modding luasandbox as Resolved.
Sep 24 2017, 4:51 AM · MediaWiki-extensions-Scribunto

Sep 23 2017

alex-mashin added a comment to T176552: modding luasandbox.

Formally, this is a request to enhance documentation on linking extra libraries to luasandbox. But if there is no such feature (which, I suspect is the case), then I think this can be closed as resolved by myself.

Sep 23 2017, 7:03 PM · MediaWiki-extensions-Scribunto
alex-mashin added a comment to T176552: modding luasandbox.

Found a more correct way to link extra libraries:

Sep 23 2017, 5:56 PM · MediaWiki-extensions-Scribunto
alex-mashin created T176552: modding luasandbox.
Sep 23 2017, 3:04 PM · MediaWiki-extensions-Scribunto

Sep 11 2017

alex-mashin added a comment to T174549: MessageCache::loadFromDB makes too many slow queries with wrong index.

UPD: I did OPTIMIZE TABLE page; and CHECK TABLE page; (it's a TokuDB table) and the query without the index hint started to use the right one. Don't know, if it was a broken index.

Sep 11 2017, 2:02 PM · Performance-Team (Radar), Wikimedia-database-error, MediaWiki-Cache
alex-mashin updated the task description for T174549: MessageCache::loadFromDB makes too many slow queries with wrong index.
Sep 11 2017, 1:12 PM · Performance-Team (Radar), Wikimedia-database-error, MediaWiki-Cache
alex-mashin renamed T174549: MessageCache::loadFromDB makes too many slow queries with wrong index from Too many queries for messages not using index to Too many slow queries for messages with wrong index.
Sep 11 2017, 1:11 PM · Performance-Team (Radar), Wikimedia-database-error, MediaWiki-Cache