Re: [Wikitech-l] New API options problem
On 2013-10-10 9:17 AM, Brad Jorsch (Anomie) wrote: > On Thu, Oct 10, 2013 at 11:13 AM, Aran wrote: >> I see, so is there any way to update user preferences such as real name >> and password via the API or has that not yet been implemented? > There is no way to do it at this time. We should really deprecate the real name column and migrate it to a realname option. I see no reason/behavior that would require it to be separate from the options besides it historically being a column (likely since we didn't have good options based preferences at that time). Password change will probably need a new module. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/] ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] New API options problem
Brad submitted a patch: https://gerrit.wikimedia.org/r/#/c/88995/ -- Matma Rex ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] New API options problem
This should probably be filed as a bug if it isn't already. -- Tyler Romeo On Oct 10, 2013 12:17 PM, "Brad Jorsch (Anomie)" wrote: > On Thu, Oct 10, 2013 at 11:13 AM, Aran wrote: > > I see, so is there any way to update user preferences such as real name > > and password via the API or has that not yet been implemented? > > There is no way to do it at this time. > > -- > Brad Jorsch (Anomie) > Software Engineer > Wikimedia Foundation > > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] New API options problem
On Thu, Oct 10, 2013 at 11:13 AM, Aran wrote: > I see, so is there any way to update user preferences such as real name > and password via the API or has that not yet been implemented? There is no way to do it at this time. -- Brad Jorsch (Anomie) Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] New API options problem
I see, so is there any way to update user preferences such as real name and password via the API or has that not yet been implemented? On 10/10/13 11:29, Brad Jorsch (Anomie) wrote: > The real name isn't actually an option, it's a field in the user > table. Special:Preferences handles it specially. > > Your API command does correctly set a "realname" option, and it can be > fetched using api.php?format=jsonfm&action=query&meta=userinfo&uiprop=options, > but as you've noted that doesn't affect the realname field in the user > table (and therefore anything else that actually uses the realname). > > On Thu, Oct 10, 2013 at 8:04 AM, Aran wrote: >> My command was: >> >> action => 'options', >> token => $token, >> format => 'xml', >> change => 'realname=Foo Bar' >> >> Which resulted in success but did nothing. >> >> >> On 10/10/13 06:22, Andre Klapper wrote: >>> Hi Aran, >>> >>> On Wed, 2013-10-09 at 16:53 -0300, Aran wrote: I'm trying to set a user's "realname" option on a local wiki (1.21.1) using the API. I can login successfully, confirm my login token fine and then I can get the options token and make the call to change options using the token. I get "Success" returned when I change the realname (or any other valid option such as password etc). But when I look in the user's preferences, or directly in the user db table there's nothing changed. >>> Could you provide the exact command, so somebody else could try to >>> reproduce? >>> >>> andre >>> >>> (Also, for future reference, please avoid replying to other emails and >>> replacing the subject line with your topic. Start a new thread instead.) >> >> ___ >> Wikitech-l mailing list >> Wikitech-l@lists.wikimedia.org >> https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] New API options problem
The real name isn't actually an option, it's a field in the user table. Special:Preferences handles it specially. Your API command does correctly set a "realname" option, and it can be fetched using api.php?format=jsonfm&action=query&meta=userinfo&uiprop=options, but as you've noted that doesn't affect the realname field in the user table (and therefore anything else that actually uses the realname). On Thu, Oct 10, 2013 at 8:04 AM, Aran wrote: > My command was: > > action => 'options', > token => $token, > format => 'xml', > change => 'realname=Foo Bar' > > Which resulted in success but did nothing. > > > On 10/10/13 06:22, Andre Klapper wrote: >> Hi Aran, >> >> On Wed, 2013-10-09 at 16:53 -0300, Aran wrote: >>> I'm trying to set a user's "realname" option on a local wiki (1.21.1) >>> using the API. I can login successfully, confirm my login token fine and >>> then I can get the options token and make the call to change options >>> using the token. >>> >>> I get "Success" returned when I change the realname (or any other valid >>> option such as password etc). But when I look in the user's preferences, >>> or directly in the user db table there's nothing changed. >> Could you provide the exact command, so somebody else could try to >> reproduce? >> >> andre >> >> (Also, for future reference, please avoid replying to other emails and >> replacing the subject line with your topic. Start a new thread instead.) > > > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l -- Brad Jorsch (Anomie) Software Engineer Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] New API options problem
My command was: action => 'options', token => $token, format => 'xml', change => 'realname=Foo Bar' Which resulted in success but did nothing. On 10/10/13 06:22, Andre Klapper wrote: > Hi Aran, > > On Wed, 2013-10-09 at 16:53 -0300, Aran wrote: >> I'm trying to set a user's "realname" option on a local wiki (1.21.1) >> using the API. I can login successfully, confirm my login token fine and >> then I can get the options token and make the call to change options >> using the token. >> >> I get "Success" returned when I change the realname (or any other valid >> option such as password etc). But when I look in the user's preferences, >> or directly in the user db table there's nothing changed. > Could you provide the exact command, so somebody else could try to > reproduce? > > andre > > (Also, for future reference, please avoid replying to other emails and > replacing the subject line with your topic. Start a new thread instead.) ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] New API options problem
Hi Aran, On Wed, 2013-10-09 at 16:53 -0300, Aran wrote: > I'm trying to set a user's "realname" option on a local wiki (1.21.1) > using the API. I can login successfully, confirm my login token fine and > then I can get the options token and make the call to change options > using the token. > > I get "Success" returned when I change the realname (or any other valid > option such as password etc). But when I look in the user's preferences, > or directly in the user db table there's nothing changed. Could you provide the exact command, so somebody else could try to reproduce? andre (Also, for future reference, please avoid replying to other emails and replacing the subject line with your topic. Start a new thread instead.) -- Andre Klapper | Wikimedia Bugwrangler http://blogs.gnome.org/aklapper/ ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
[Wikitech-l] New API options problem
Hi, I'm trying to set a user's "realname" option on a local wiki (1.21.1) using the API. I can login successfully, confirm my login token fine and then I can get the options token and make the call to change options using the token. I get "Success" returned when I change the realname (or any other valid option such as password etc). But when I look in the user's preferences, or directly in the user db table there's nothing changed. Is there something else I need to configure? or is this a bug? Aran ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l