Page MenuHomePhabricator

Allow changing preferences via API
Closed, ResolvedPublic

Description

Author: lilewyn

Description:
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.


Version: unspecified
Severity: enhancement

Details

Reference
bz18195

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:33 PM
bzimport set Reference to bz18195.

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.

Will be trivially doable in preferences-work branch.

Created attachment 6053
Half-done patch

This patch is sort of done, but it's broken because you can't call wfMsgExt from API modules.

attachment api-preferences.txt ignored as obsolete

(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 :/

(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

Have you got the full "half done" patch Andrew?

Bryan.TongMinh wrote:

Andrew says: "I'm sorry, no."

Lol. I've just realised Bryan you asked Andrew when i was sat next to him. Lol

Comment on attachment 6053
Half-done patch

Obseleting patch as it's useless :(

*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*

kudu wrote:

Bumping this as it would allow for SWMT members and such to set signatures and language globally.

(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.

sumanah wrote:

-patch since there is no patch currently