Having BetaFeatures enabled for wikitech would allow users there to try out things like cirrussearch-completionsuggester, read-more or VisualEditor wikitext editor.
They might be interesting features for the Wikitech audience.
Having BetaFeatures enabled for wikitech would allow users there to try out things like cirrussearch-completionsuggester, read-more or VisualEditor wikitext editor.
They might be interesting features for the Wikitech audience.
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
operations/mediawiki-config | master | +0 -1 | wikitech: enable BetaFeatures |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T123425 [EPIC] Make wikitech more friendly for the multiple audiences it supports | |||
Resolved | hashar | T125941 Enable BetaFeatures extension on Wikitech |
It was disabled as part of https://gerrit.wikimedia.org/r/#/c/158409/ - not sure why. But September 2014... Was that around the time it was being migrated to silver? Maybe they imported all the wikitech data but it didn't have the tables for the newly expected-by-default extensions, or something.
krenair@silver:~$ mwscript showJobs.php labswiki --group refreshLinksPrioritized: 0 queued; 507 claimed (0 active, 507 abandoned); 0 delayed categoryMembershipChange: 0 queued; 1 claimed (0 active, 1 abandoned); 0 delayed
sudo -u www-data crontab -l shows:
# Puppet Name: run-jobs * * * * * /usr/local/bin/mwscript maintenance/runJobs.php --wiki=labswiki > /dev/null 2>&1
I am reviving this task slightly. I could definitely use the VisualEditor to edit wikitext which is only available as a BetaFeature ( https://www.mediawiki.org/wiki/2017_wikitext_editor ).
From the above comments about BetaFeatures:
Why it is disabled
Extension has been disabled with other extensions by @Andrew in 2014: https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/158409 . Some got enabled again afterward such as Math.
MediaWiki jobs
Running job is done by running runJobs.php every minute:
systemd::timer::job { 'wikitech_run_jobs': ensure => present, description => 'Run Wikitech runJobs.php maintenance script', command => "/usr/local/bin/mwscript maintenance/runJobs.php --wiki=${wikidb}", interval => { 'start' => 'OnCalendar', 'interval' => '*-*-* *:*:00', # Every minute }, ... }
It is not ideal but that does the work.
Database table
The extension requires a Database table to be created: betafeatures_user_counts. It is present on the database:
mwmaint1002:~$ echo 'SHOW CREATE TABLE betafeatures_user_counts \G'|sql labswiki *************************** 1. row *************************** Table: betafeatures_user_counts Create Table: CREATE TABLE `betafeatures_user_counts` ( `feature` varchar(255) NOT NULL, `number` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`feature`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1
And match the schema provided in the extension:
CREATE TABLE /*_*/betafeatures_user_counts ( feature VARCHAR(255) NOT NULL, number INT DEFAULT 0 NOT NULL, PRIMARY KEY(feature) ) /*$wgDBTableOptions*/;
Maybe some features would require extra database tables, but we can probably assume they got created as part of enabling those extensions.
So I guess it is all a matter of enabling it again?
Change 668196 had a related patch set uploaded (by Hashar; owner: Hashar):
[operations/mediawiki-config@master] wikitech: enable BetaFeatures
Change 668196 merged by jenkins-bot:
[operations/mediawiki-config@master] wikitech: enable BetaFeatures
Mentioned in SAL (#wikimedia-operations) [2021-03-11T19:18:14Z] <tgr@deploy1002> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:668196|wikitech: enable BetaFeatures (T125941)]] (duration: 01m 08s)
Looks like that works now: https://wikitech.wikimedia.org/wiki/Special:Preferences#mw-prefsection-betafeatures
I have tested New wikitext mode and Visual differences . I haven't tested Paragraph-based edit conflict , I assume it will work ;)