Page MenuHomePhabricator

Load user options from consumer wiki
Closed, ResolvedPublic

Description

User specific settings would be stored on the consumer, probably as a simple under page of the user page (e.g. /Wikispeech_settings). The user name needs to be sent to the producer when loading the gadget so that it can fetch them. Alternatively, the initial request can send the settings as a parameter.

Event Timeline

The user options should be possible to handle on the consumer side and not sending them to the producer. The only thing to look out for is that the default options are set when loading the script form the producer, so they need to be set before that (and make sure only unset options are set to defaults) or they need to be loaded after the defaults are set.

The most elegant way of doing this is probably to add the reading to the producer side script. This can read the config page on the consumer when loaded. The only thing that you can't change then is the name of the settings page (it will be specified by the producer), but that's probably not a big issue.

Change 685821 had a related patch set uploaded (by Sebastian Berlin (WMSE); author: Sebastian Berlin (WMSE)):

[mediawiki/extensions/Wikispeech@master] Read user options from user subpage on consumer wiki

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

Aklapper renamed this task from User setttings to User settings.May 6 2021, 3:26 PM
Sebastian_Berlin-WMSE renamed this task from User settings to Load user options from consumer wiki.May 7 2021, 10:03 AM
Sebastian_Berlin-WMSE moved this task from Unsorted to Player on the Wikispeech-Text-to-Speech board.

Change 685821 merged by jenkins-bot:

[mediawiki/extensions/Wikispeech@master] Read user options from user subpage on consumer wiki

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