Last modified: 2012-10-14 22:18:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39364, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37364 - Uninstall PrefSwitch extension from Wikimedia wikis
Uninstall PrefSwitch extension from Wikimedia wikis
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
Depends on: 29858 38095
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-06 05:12 UTC by MZMcBride
Modified: 2012-10-14 22:18 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2012-06-06 05:12:05 UTC
According to <https://en.wikipedia.org/wiki/Special:Version>, the PrefSwitch extension (<https://www.mediawiki.org/wiki/Extension:UsabilityInitiative>) is currently installed. I'm fairly sure this can be disabled now.
Comment 1 Liangent 2012-08-24 08:14:54 UTC
and it's broken now:

[76e38684] 2012-08-24 08:14:11: Fatal exception of type MWException
Comment 2 Liangent 2012-08-24 08:15:28 UTC
(In reply to comment #1)
> and it's broken now:
> 
> [76e38684] 2012-08-24 08:14:11: Fatal exception of type MWException

on zhwiki.
Comment 3 Nemo 2012-08-24 08:22:12 UTC
It's not broken, it's been disabled since March, see <https://wikitech.wikimedia.org/index.php?title=Server_admin_log/Archive_20&diff=44913&oldid=44912&diffonly=yes>. But bug 38095 strikes again.

Note: "PrefSwitch is needed by SimpleSurvey" <https://wikitech.wikimedia.org/index.php?title=Server_admin_log&diff=45462&oldid=45454&diffonly=yes>
Comment 4 Liangent 2012-08-24 09:25:39 UTC
(In reply to comment #3)
> It's not broken, it's been disabled since March, see
> <https://wikitech.wikimedia.org/index.php?title=Server_admin_log/Archive_20&diff=44913&oldid=44912&diffonly=yes>.
> But bug 38095 strikes again.
> 
> Note: "PrefSwitch is needed by SimpleSurvey"
> <https://wikitech.wikimedia.org/index.php?title=Server_admin_log&diff=45462&oldid=45454&diffonly=yes>

http://en.wikipedia.org/wiki/Special:PrefSwitch is showing something but http://zh.wikipedia.org/wiki/Special:PrefSwitch?uselang=en says

Internal error
[7788dd6f] 2012-08-24 09:25:17: Fatal exception of type MWException
Comment 5 Nemo 2012-08-24 09:53:08 UTC
(In reply to comment #4)
> http://en.wikipedia.org/wiki/Special:PrefSwitch is showing something but
> http://zh.wikipedia.org/wiki/Special:PrefSwitch?uselang=en says
> 
> Internal error
> [7788dd6f] 2012-08-24 09:25:17: Fatal exception of type MWException

It's the opposite for me. Ok, so this is another bug depending on your personal situation (aka just standard PrefSwitch brokenness).
Comment 6 Liangent 2012-08-24 10:06:14 UTC
(In reply to comment #5)
> It's the opposite for me. Ok, so this is another bug depending on your personal
> situation (aka just standard PrefSwitch brokenness).

Yeah but is such a semi-abandoned(?) and unmaintained extension worth fixing? If SimpleSurvey is only depending on a component of it, say, some functions in a class of PrefSwitch, it would be better to move it to SimpleSurvey and uninstall PrefSwitch.
Comment 7 Siebrand Mazeland 2012-10-04 17:57:22 UTC
(In reply to comment #3)
> Note: "PrefSwitch is needed by SimpleSurvey"
> <https://wikitech.wikimedia.org/index.php?title=Server_admin_log&diff=45462&oldid=45454&diffonly=yes>

No idea what SimpleSurvey does, but is that actually being used? If not, let's just get rid of both?
Comment 8 Sam Reed (reedy) 2012-10-04 18:15:17 UTC
(In reply to comment #7)
> (In reply to comment #3)
> > Note: "PrefSwitch is needed by SimpleSurvey"
> > <https://wikitech.wikimedia.org/index.php?title=Server_admin_log&diff=45462&oldid=45454&diffonly=yes>
> 
> No idea what SimpleSurvey does, but is that actually being used? If not, let's
> just get rid of both?

They seem to have weird circular dependencies on each other.

AFT (original) has a dependency on SimpleSurvey:

/* XXX: Survey setup */
require_once( dirname( dirname( __FILE__ ) ) . '/SimpleSurvey/SimpleSurvey.php' );

which also includes PrefSwitch...

However, I can't seem to find any actual usages in the code...


I believe there is talk to disable legacy
Comment 9 Sam Reed (reedy) 2012-10-04 18:17:58 UTC
I've made https://gerrit.wikimedia.org/r/26652 to remove them...
Comment 10 Sam Reed (reedy) 2012-10-04 18:30:58 UTC
There are usages. Pfft
Comment 11 spage 2012-10-04 23:26:29 UTC
For reference, one usage is AFT's ext.articleFeedback.js loads a survey object from
<http://en.wikipedia.org/w/index.php?title=Special%3ASimpleSurvey&survey=articlerating&raw=1>
Comment 12 spage 2012-10-04 23:36:41 UTC
And the generated SimpleSurvey loads PrefSwitch/modules/ext.prefSwitch.js which provides some show/hide logic.  That one JS file should be moved to SimpleSurvey since the rest of Extension:PrefSwitch is ridiculously obsolete.
Comment 13 spage 2012-10-06 02:38:04 UTC
But since March 2012 AFT doesn't present its survey to anyone (it's weighted 0, so everyone only gets a "Did you know that you can edit this page?" pitch).  https://gerrit.wikimedia.org/r/26927 removes the survey code from AFT, which may allow SimpleSurvey and PrefSwitch to be killed.
Comment 14 spage 2012-10-14 22:18:50 UTC
Gerrit change #26927 was merged in time for 1.21wmf1, so AFT no longer requires SimpleSurvey.php which required PrefSwitch.php, so both extensions are gone from en-wiki. Yay!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links