Page MenuHomePhabricator

Add `temp` flag to various APIs
Closed, ResolvedPublic2 Estimated Story Points

Description

The following API endpoints return information about contributions, and include an anon flag if the performer was an anonymous/IP user.

Following the decision to consider temporary users as a separate type of user in T337103: Decide a standard approach for classifying temporary, IP and registered users, we should add a temp flag to these in order to flag temporary users too.

Details

Related Changes in Gerrit:

Event Timeline

Change 979100 had a related patch set uploaded (by STran; author: STran):

[mediawiki/core@master] Add `temp` flags to api calls

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

Change 979100 merged by jenkins-bot:

[mediawiki/core@master] Add `temp` flags to api calls

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

dom_walden subscribed.

I tested all the API listed in the description (using list=allrevisions and list=alldeletedrevisions as they extend ApiQueryRevisionsBase).

I tested on a wikis with and without temporary accounts enabled and saw entries for temporary, anon and named users.

Test environment: local docker MediaWiki 1.42.0-alpha (2f4e492) 07:13, 12 January 2024.