Last modified: 2014-02-06 16:05:20 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 T46797, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44797 - add student-article hooks for gadgets that work with the Students table
add student-article hooks for gadgets that work with the Students table
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
EducationProgram (Other open bugs)
master
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 43859
  Show dependency treegraph
 
Reported: 2013-02-08 14:48 UTC by Sage Ross
Modified: 2014-02-06 16:05 UTC (History)
3 users (show)

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


Attachments

Description Sage Ross 2013-02-08 14:48:48 UTC
We'd like to be able to hook .js gadgets into the course pages in useful ways, such as adding adding links for each article in the student table that provide filtered article histories with just the diffs for that student.

As Jeroen describes in an email: "Right now the table does not contain any easy-to-use data elements meant for usage by such scripts. I could add some. Alternatively the info could be added as a JSON blob in the page. Could also make the info available through an API module, which would allow scripts to use this info wherever they see fit.

Those options are basically ordered both from simple specific code to powerful general purpose code and from little work to implement to something that will take a few hours."

Ultimately, an API module seems like a very good idea. In the short term, though, adding some easy-to-use data elements that include the student-article linkages would probably be very helpful.

(I'll ask User:Writ Keeper, who is the script builder who prompted this, to comment.)
Comment 1 writ.keeper.enwp 2013-02-09 05:24:08 UTC
Hey, all.  The script itself is based on User:Ale jrb's userhist script; it works directly from the article's history page and uses an API call to filter the entries by a selected user name. (I've made some modifications to the script, fixing a bug here or there and adding buttons to enable the loading of diffs in-place, rather than going to a separate page.) The script was already built by Ale jrb to accept a GET parameter ("isolate"), which, when present, automatically filters the history page by the given user name.  Thus, in order to be accessed from a separate page, the URL requires two things: the target page for the standard "title" parameter, and the filtered user's name for the "isolate" parameter.  The source for the script is at User:Writ Keeper/Scripts/userHistory.js; much of the code is unchanged from the original at [[User:Ale jrb/Scripts/userhist.js]].  Let me know if I can be of any help. Thanks!
Comment 2 Sage Ross 2014-02-06 16:05:20 UTC
At least in the current version of course pages (rather than a more general replacement that will be built later on) this is not going to be implemented.

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


Navigation
Links