Last modified: 2014-11-17 10:36:19 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 T42785, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40785 - Remove sajax usage from MediaWiki core
Remove sajax usage from MediaWiki core
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: Future release
Assigned To: Alex Monk
:
Depends on: 40448 40745 40746
Blocks: 40787
  Show dependency treegraph
 
Reported: 2012-10-05 04:14 UTC by Daniel Friesen
Modified: 2014-11-17 10:36 UTC (History)
7 users (show)

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


Attachments

Description Daniel Friesen 2012-10-05 04:14:56 UTC
sajax is ancient and should be cleared out of core bit by bit.

http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/64380
Comment 1 Gerrit Notification Bot 2013-05-26 18:29:48 UTC
Related URL: https://gerrit.wikimedia.org/r/65641 (Gerrit Change I4a0af8986f924cd127a73828e72da6998f28536c)
Comment 2 Jack Phoenix 2013-05-26 18:58:31 UTC
What is the exact proper replacement? Why is this so urgent?
Many social extensions, including, but not limited to, SocialProfile make heavy use of sajax_* functions and I'm not a big fan of removing it just because there's the ah-so-great jQuery. Sajax isn't hurting anyone, so I'm all for keeping it.
Comment 3 Alex Monk 2013-05-26 19:34:07 UTC
> What is the exact proper replacement?

mediawiki.api and jQuery.

> Why is this so urgent?

Who said it was urgent? This bug was left for 7 months...

> just because there's the ah-so-great jQuery

You should be using mediawiki.api for most of this stuff...

> Sajax isn't hurting anyone, so I'm all for keeping it.

That's not really a valid reason to keep something.
Comment 4 Gerrit Notification Bot 2013-05-31 15:36:00 UTC
Related URL: https://gerrit.wikimedia.org/r/66265 (Gerrit Change I52f01e4e7d8a0ee595b4775068c8a3d630140092)
Comment 5 Gerrit Notification Bot 2013-08-13 02:34:11 UTC
Change 65641 merged by jenkins-bot:
Replace remaining sajax use

https://gerrit.wikimedia.org/r/65641
Comment 6 MZMcBride 2013-08-13 03:41:27 UTC
(In reply to comment #5)
> Change 65641 merged by jenkins-bot:
> Replace remaining sajax use
> 
> https://gerrit.wikimedia.org/r/65641

Is this bug now resolved/fixed?
Comment 7 Alex Monk 2013-08-13 12:51:04 UTC
Sort of.

Core is no longer using Sajax and anyone else trying to use it will get JS console warnings if debug=true.

However, the sajax library is still in core. It can't be removed until extensions have stopped using it - particularly SecurePoll, which is in use on Wikimedia wikis, but maybe we should also allow time for BlogPage, CommunityVoice, DonationInterface (this seems sort of used on Wikimedia sites, not 100% sure about that), Drafts, OnlineStatus, and ReaderFeedback (there may be others that I've missed) to stop using it.

Anyway we've done all we can here in core for now so marking RESOLVED, bugs should be filed against extensions, gadgets, user scripts, etc. to remove use of sajax. When it's (basically) all gone from use we can reopen this to remove sajax completely.
Comment 8 Daniel Friesen 2013-08-13 13:09:47 UTC
How about we just leave it open like a normal bug and mark usage in extensions as blockers.

I've never heard of treating a bug as "FIXED for now, but we'll re-open it later when we're able to actually fix it".
Comment 9 Alex Monk 2013-08-13 13:26:25 UTC
Fine.
Comment 10 Gerrit Notification Bot 2013-08-20 16:37:27 UTC
Change 80042 had a related patch set uploaded by Brian Wolff:
Follow-up db51c53b8f. Fix already used variable name.

https://gerrit.wikimedia.org/r/80042
Comment 11 Gerrit Notification Bot 2013-08-20 16:38:48 UTC
Change 80043 had a related patch set uploaded by Brian Wolff:
Follow-up db51c53b8f. Fix already used variable name.

https://gerrit.wikimedia.org/r/80043
Comment 12 Bawolff (Brian Wolff) 2013-08-20 16:41:33 UTC
remarking as fixed.
Comment 13 Gerrit Notification Bot 2013-08-20 16:43:59 UTC
Change 80042 merged by jenkins-bot:
Follow-up db51c53b8f. Fix already used variable name.

https://gerrit.wikimedia.org/r/80042
Comment 14 MZMcBride 2013-08-20 21:07:04 UTC
(In reply to comment #8)
> How about we just leave it open like a normal bug and mark usage in
> extensions as blockers.

I'm going to change this bug to focus exclusively on sajax _usage_ in MediaWiki core.

I've filed two separate bugs:

* bug 53120: remove sajax itself from MediaWiki core

which is blocked by (or depends on):

* bug 53119: sajax usage in MediaWiki extensions (tracking)
** bug 53122: Kill sajax usage in SecurePoll extension

This bug is now properly resolved/fixed.
Comment 15 Gerrit Notification Bot 2013-08-26 22:03:18 UTC
Change 80043 abandoned by Brian Wolff:
Follow-up db51c53b8f. Fix already used variable name.

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

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


Navigation
Links