Page MenuHomePhabricator

Return autoconfirmed information for site via API
Open, LowPublic

Description

Make Siteinfo API returns autoconfirmed information for the site.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 31 2018, 10:31 AM

I created this task because this is useful for T189286.

Anomie added a subscriber: Anomie.May 31 2018, 2:49 PM

Make Siteinfo API returns autoconfirmed information for the site.

This request would be satisfied by exposing the value of $wgAutopromote.

Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.May 31 2018, 2:49 PM

I don't know what conditions are needed to pass an API request, community consensus?

Depends on the request.

If it's in the "Needs details or plan" column of the MediaWiki-API workboard, that usually means discussion of some sort is needed. That could be discussion to determine if the change is actually a good idea, or just discussion to figure out how to actually do it.

If it's in "Needs Code", that normally means someone should write the code and then try to get me to review it. Or hope I find it interesting/useful enough to write the code myself.

RazeSoldier triaged this task as Normal priority.

I pushed a patch.

For default installation, the API display:

{
    "batchcomplete": "",
    "query": {
        "autopromote": {
            "autoconfirmed": {
                "conditions": [
                    [
                        "&",
                        [
                            1,
                            0
                        ],
                        [
                            2,
                            0
                        ]
                    ]
                ]
            }
        }
    }
}

Is this data structure feasible?

Anomie moved this task from Needs Code to In Dev on the MediaWiki-API board.Jun 7 2018, 1:24 PM
RazeSoldier lowered the priority of this task from Normal to Low.Jun 15 2018, 3:00 PM
Vvjjkkii renamed this task from Return autoconfirmed information for site via API to 8wbaaaaaaa.Jul 1 2018, 1:06 AM
Vvjjkkii removed RazeSoldier as the assignee of this task.
Vvjjkkii raised the priority of this task from Low to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
RazeSoldier renamed this task from 8wbaaaaaaa to Return autoconfirmed information for site via API.Jul 1 2018, 8:42 AM
RazeSoldier claimed this task.
RazeSoldier lowered the priority of this task from High to Low.
RazeSoldier updated the task description. (Show Details)
RazeSoldier added a subscriber: Aklapper.

Change 444335 had a related patch set uploaded (by 星耀晨曦; owner: 星耀晨曦):
[mediawiki/core@master] Make logical operators recognized in $wgAutopromote public

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