Last modified: 2013-02-21 01:49:03 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 T20195, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18195 - Allow changing preferences via API
Allow changing preferences via API
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement with 2 votes (vote)
: 1.20.0 release
Assigned To: Andrew Garrett
:
Depends on: 33695 18410
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-27 04:02 UTC by Nobody
Modified: 2013-02-21 01:49 UTC (History)
14 users (show)

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


Attachments
Half-done patch (1.81 KB, patch)
2009-04-24 03:39 UTC, Andrew Garrett
Details

Description Nobody 2009-03-27 04:02:40 UTC
While the API allows for viewing properties via the API (see /api.php?action=query&meta=userinfo&uiprop=options), it does not allow for modification of preferences. Preferably, the options could be set individually as opposed to requiring they all be set at once.
Comment 1 Roan Kattouw 2009-03-27 12:08:19 UTC
Werdna is currently working on redoing the user preferences system in his preferences-work branch. Once he's done, writing an API module to change preferences should be doable; right now the preferences system sucks too much.
Comment 2 Andrew Garrett 2009-04-09 05:42:25 UTC
Will be trivially doable in preferences-work branch.
Comment 3 Andrew Garrett 2009-04-24 03:39:42 UTC
Created attachment 6053 [details]
Half-done patch

This patch is sort of done, but it's broken because you can't call wfMsgExt from API modules.
Comment 4 Andrew Garrett 2009-04-24 03:40:09 UTC
(In reply to comment #3)
> Created an attachment (id=6053) [details]
> Half-done patch
> 
> This patch is sort of done, but it's broken because you can't call wfMsgExt
> from API modules.
> 

Ignore the profiling changes :/
Comment 5 Roan Kattouw 2009-04-24 10:14:14 UTC
(In reply to comment #3)
> Created an attachment (id=6053) [details]
> Half-done patch
> 
> This patch is sort of done, but it's broken because you can't call wfMsgExt
> from API modules.
> 

You seem to have forgotten to svn add ApiPreferences.php
Comment 6 Sam Reed (reedy) 2010-01-31 00:21:32 UTC
Have you got the full "half done" patch Andrew?
Comment 7 Bryan Tong Minh 2010-04-15 16:03:50 UTC
Andrew says: "I'm sorry, no."
Comment 8 Sam Reed (reedy) 2010-04-15 18:28:49 UTC
Lol. I've just realised Bryan you asked Andrew when i was sat next to him. Lol
Comment 9 Sam Reed (reedy) 2010-04-24 11:33:26 UTC
Comment on attachment 6053 [details]
Half-done patch

Obseleting patch as it's useless :(
Comment 10 p858snake 2011-04-30 00:09:28 UTC
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Comment 11 Kudu 2011-08-21 16:30:50 UTC
Bumping this as it would allow for SWMT members and such to set signatures and language globally.
Comment 12 Krinkle 2011-08-27 02:02:11 UTC
(In reply to comment #11)
> Bumping this as it would allow for SWMT members and such to set signatures and
> language globally.

There is a separate feature request for CentralAuth implementating global preferences so we can set signature, real name, skin, language, anything globally. No need for a preferences-api for that (which would still require someone to write a bot to make a ton of api requests). 

See bug 14950.
Comment 13 Sumana Harihareswara 2011-11-09 21:38:27 UTC
-patch since there is no patch currently
Comment 14 Beau 2012-04-16 20:19:38 UTC
I have submitted a change https://gerrit.wikimedia.org/r/#q,I0d6c654a7354ba77e65e338423952a6a78c1150f,n,z for review.

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


Navigation
Links