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

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: Changes to meta=siteinfo with formatversion=2

Brad Jorsch (Anomie)
On Tue, Jun 16, 2015 at 4:36 PM, Brad Jorsch (Anomie) <[hidden email]> wrote:
Output from siprop=namespaces will be an array, rather than an object indexed by namespace number. See T102645.[1]

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

Some have objected to this part of the change. If you have an opinion, please join the discussion in Phabricator.


--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

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

Roan Kattouw-2
In reply to this post by Brad Jorsch (Anomie)

On Tue, Jun 16, 2015 at 1:36 PM, Brad Jorsch (Anomie) <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

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

Brad Jorsch (Anomie)

On Jun 22, 2015 3:04 PM, "Roan Kattouw" <[hidden email]> wrote:
>
>
> On Tue, Jun 16, 2015 at 1:36 PM, Brad Jorsch (Anomie) <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

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

Brad Jorsch (Anomie)
In reply to this post by Brad Jorsch (Anomie)

On Jun 16, 2015 4:36 PM, "Brad Jorsch (Anomie)" <[hidden email]> 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]

After further discussion on the task, this part of the change was undone.

The other parts of the change (quoted below) are still in effect.

> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api