Last modified: 2010-05-28 17:40:12 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 T25342, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23342 - Install the "HotCat" gadget
Install the "HotCat" gadget
Status: RESOLVED INVALID
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Rob Halsell
http://en.wikipedia.org/wiki/User:The...
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-29 01:20 UTC by Pete F
Modified: 2010-05-28 17:40 UTC (History)
1 user (show)

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


Attachments

Description Pete F 2010-04-29 01:20:12 UTC
The "HotCat" feature makes it much easier to add and edit categories on pages. So it would help enormously in efforts to get the office wiki more organized.

This may require installing the "Gadgets" functionality on the Office Wiki first. Let me know if you have any questions.
Comment 1 Roan Kattouw 2010-04-29 11:21:47 UTC
The gadgets extension has already been installed on officewiki, and adding gadgets is something any sysop can do locally by editing the relevant MediaWiki: pages. No sysadmin intervention needed, closing bug.
Comment 2 Pete F 2010-04-29 18:45:18 UTC
Roan -- is it usual that I would not get a response outside the system to something like this? I'm not very familiar with Bugzilla, and am a little surprised I was even able to *find* this response. Is there a way for me to get a response by email or something? (Email appears to be enabled in my preferences, but nothing came through.)

Anyway -- I'm not sure how to reword my request, but I need some help figuring out how to enable HotCat. I know it may seem straightforward to you guys, but I struggle with this stuff :( Can you help?
Comment 3 Roan Kattouw 2010-04-29 19:19:20 UTC
(In reply to comment #2)
> Roan -- is it usual that I would not get a response outside the system to
> something like this? I'm not very familiar with Bugzilla, and am a little
> surprised I was even able to *find* this response. Is there a way for me to get
> a response by email or something? (Email appears to be enabled in my
> preferences, but nothing came through.)
> 
Bugzilla is supposed to always send you an e-mail. Maybe our mail server had a hiccup or something, I'll poke you on IRC to make sure you get this.

> Anyway -- I'm not sure how to reword my request, but I need some help figuring
> out how to enable HotCat. I know it may seem straightforward to you guys, but I
> struggle with this stuff :( Can you help?
Copy the pages linked on http://en.wikipedia.org/wiki/Special:PrefixIndex/MediaWiki:Gadget-HotCat to officewiki.
Comment 4 Pete F 2010-04-29 20:15:19 UTC
So, I'm confused about this. (Is it ok to move this out of "resolved" until we've reached some agreement about whether or not it's been resolved?)

I don't know where to copy those pages, or how to copy them, or whether this will result in a checkbox in everybody's preferences on Office Wiki like English Wikipedia has.
Comment 5 Roan Kattouw 2010-04-29 20:17:50 UTC
(In reply to comment #4)
> So, I'm confused about this. (Is it ok to move this out of "resolved" until
> we've reached some agreement about whether or not it's been resolved?)
> 
It's resolved as invalid because it doesn't belong on Bugzilla.

> I don't know where to copy those pages,
Copy the contents of [[en:MediaWiki:Gadget-HotCat]] to [[office:MediaWiki:Gadget-HotCat]] and do the same for the other page.

> or how to copy them, or whether this
> will result in a checkbox in everybody's preferences on Office Wiki like
> English Wikipedia has.
It should, I think.
Comment 6 Pete F 2010-04-29 21:34:51 UTC
Just to document how far we got:

* copied [[w:en:MediaWiki:HotCat]] to office:, same name
* copied [[w:en:MediaWiki:Gadgets-definition]] to office:, same name; then deleted out all the non-HotCat items
* copied the contents of [[w:en:User:TheDJ/Gadget-HotCat.js]] to [[office:MediaWiki:Gadget-HotCat.js]]

This successfully brought the checkbox into user preferences; and checking it makes the HotCat interface appear at the bottom of wiki pages.

However, the gadget doesn't work yet; it fails to look ahead as you're typing a category name, and clicking the "OK" button fails to save the category entered.

Roan recommended asking [[w:en:User:TheDJ]] about dependencies, which I'm deferring to a later date.
Comment 7 Roan Kattouw 2010-04-29 21:48:59 UTC
I figured out what's wrong. First, MWSuggest needs to be enabled for the autocompletion feature. I'm not sure why this is currently disabled on private wikis, enabling it would seem to be safe. Second, HotCat uses JSON callbacks even to query data on the same domain. This is completely unnecessary (no cross-domain restrictions apply, so callbacks aren't needed and AJAX can be used instead) but does break on private wikis because callbacks always operate as anonymous users.

In short: 1) enable MWSuggest on private wikis 2) fix HotCat to not use callbacks
Comment 8 Pete F 2010-04-30 00:19:13 UTC
Thanks for digging further, Roan. So, I should go to TheDJ and ask him to do number (2), and you can maybe help me with (1)?
Comment 9 Roan Kattouw 2010-04-30 19:55:46 UTC
(In reply to comment #8)
> Thanks for digging further, Roan. So, I should go to TheDJ and ask him to do
> number (2), and you can maybe help me with (1)?
Yes. I'll talk to some people about (1), there may be some security implications I'm unaware of.
Comment 10 Pete F 2010-05-28 17:40:12 UTC
For future reference, I (finally) emailed TheDJ on May 26 -- I'm pasting the text below:

Hi TheDJ,

I'm not sure if you know Roan Kattouw, a developer who works with us at the Wikimedia Foundation.

I recently asked him to help me install HotCat on a private wiki we use. (I'm not very good with technical configuration!)

He tried to install it, but he told me there was an issue with HotCat's design that prevents it from working on private wikis, and that I should check with you to see if it could be changed. (I'll quote his exact words below):

Second, HotCat uses JSON callbacks even to query data on the same domain. This is completely unnecessary (no cross-domain restrictions apply, so callbacks aren't needed and AJAX can be used instead) but does break on private wikis because callbacks always operate as anonymous users.

Does what he says make sense? If so, is it something that you could change?

If you have technical questions, it might be best to direct them directly to Roan [[User:Catrope]].

It would make a big difference for us here, and presumably on any number of other private MediaWiki installations!

Thanks for any help,
-Pete

--
Pete Forsyth
Public Outreach Officer
Wikimedia Foundation

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


Navigation
Links