Re: [Mediawiki-api] [Mediawiki-api-announce] Changes to meta=siteinfo with formatversion=2

2015-06-23 Thread Brad Jorsch (Anomie)
On Jun 22, 2015 3:04 PM, Roan Kattouw roan.katt...@gmail.com wrote:


 On Tue, Jun 16, 2015 at 1:36 PM, Brad Jorsch (Anomie) 
bjor...@wikimedia.org wrote:

 Note that formatversion=2 is still considered slightly experimental, in
that backwards-incompatible changes like this can still happen. If you see
any other changes like this that should be made, please report them!

 Starting in 1.26wmf11, the following changes will be made in the output
from meta=siteinfo when formatversion=2 is in use:
 Output from siprop=namespaces will be an array, rather than an object
indexed by namespace number. See T102645.[1]


 This was reverted in https://gerrit.wikimedia.org/r/#/c/219514/ . The
output of siprop=namespaces will not change in 1.26wmf11.

For clarity, the quoted item was undone. The other changes from the
original message are still in effect.
___
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


Re: [Mediawiki-api] [Mediawiki-api-announce] Changes to meta=siteinfo with formatversion=2

2015-06-22 Thread Roan Kattouw
On Tue, Jun 16, 2015 at 1:36 PM, Brad Jorsch (Anomie) bjor...@wikimedia.org
 wrote:

 Note that formatversion=2 is still considered slightly experimental, in
 that backwards-incompatible changes like this can still happen. If you see
 any other changes like this that should be made, please report them!

 Starting in 1.26wmf11, the following changes will be made in the output
 from meta=siteinfo when formatversion=2 is in use:

- Output from siprop=namespaces will be an array, rather than an
object indexed by namespace number. See T102645.[1]


This was reverted in https://gerrit.wikimedia.org/r/#/c/219514/ . The
output of siprop=namespaces will not change in 1.26wmf11.
___
Mediawiki-api-announce mailing list
mediawiki-api-annou...@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
___
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


[Mediawiki-api] [Mediawiki-api-announce] Changes to meta=siteinfo with formatversion=2

2015-06-16 Thread Brad Jorsch (Anomie)
Note that formatversion=2 is still considered slightly experimental, in
that backwards-incompatible changes like this can still happen. If you see
any other changes like this that should be made, please report them!

Starting in 1.26wmf11, the following changes will be made in the output
from meta=siteinfo when formatversion=2 is in use:

   - Output from siprop=namespaces will be an array, rather than an object
   indexed by namespace number. See T102645.[1]
   - The 'add', 'remove', 'add-self', and 'remove-self' subarrays in
   siprop=usergroups will always be arrays, never objects with numeric keys.
   - The (sub)arrays in the output from siprops restrictions,
   extensiontags, functionhooks, variables, protocols, and showhooks are now
   guaranteed to be arrays. Getting objects with numeric keys from these seems
   to have been unlikely or impossible anyway, but now it's guaranteed.

 [1]: https://phabricator.wikimedia.org/T102645

-- 
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
___
Mediawiki-api-announce mailing list
mediawiki-api-annou...@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
___
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api