[Mediawiki-api-announce] [BREAKING CHANGE] meta=notifications outputs array instead of object since 1.27.0-wmf.22

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Mediawiki-api-announce] [BREAKING CHANGE] meta=notifications outputs array instead of object since 1.27.0-wmf.22

Roan Kattouw-2
As of 1.27.0-wmf.22 (deployed to WMF wikis April 26-28) and MediaWiki release 1.27 (specifically, this change in Echo), meta=notifications will return its result as an array rather than an object.

Previously, the meta=notifications output looked like:
{
    "query": {
        "notifications": {
            "list": {
                "12345": {
                    "id": "12345",
                    "type": "edit-user-talk",
...
},
...
}


Now, it looks like:
{
    "query": {
        "notifications": {
            "list": [
                {
                    "id": "12345",
                    "type": "edit-user-talk",
...
},
...
]

My apologies for the late announcement, and thanks to APerson and Cienca Al Poder for noticing and encouraging me to write this announcement.

_______________________________________________
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