Page MenuHomePhabricator

There should be a API for querying whether somebody has donated
Closed, ResolvedPublic

Description

Background

Developers will need to be able to query what user they are building for in order to show them workflows like consent and anon-only donation features.

User story

As a developer I need to know whether the user is active so I can decide how to customize my feature to them.

Requirements

For all donors

  • I can use an API to detect whether the cookie exists for a given user telling me they've donated.
  • Nothing is stored on the server

BDD

  • For QA engineer to fill out

Test Steps

  • For QA engineer to fill out

Design

  • Add mockups and design requirements

Acceptance criteria

  • It is possible to determine whether someone has donated by presence of cookie.

Communication criteria - does this need an announcement or discussion?

  • Add communication criteria

Rollback plan

  • What is the rollback plan in production for this task if something goes wrong?

This task was created by Version 1.2.0 of the Web team task template using phabulous

Event Timeline

Change #1255770 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/WikimediaCustomizations@master] WIP: Add Donor API

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

Change #1255770 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/WikimediaCustomizations@master] WIP: Add Donor API

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

Jdlrobson-WMF raised the priority of this task from Low to Medium.Apr 25 2026, 12:57 AM
Jdlrobson-WMF added a subscriber: Volker_E.

@Volker_E I think this makes sense to build out (at least partially) as part of the experiment.

See the associated WIP patch. I think you'll likely need these 2 at least?:

  • recentlyDonated
  • isDonor

Change #1285463 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/WikimediaCustomizations@master] Donor identification: Expand API

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

Change #1255770 merged by jenkins-bot:

[mediawiki/extensions/WikimediaCustomizations@master] Donor Identification: Add Donor Frontend API

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

Jdlrobson-WMF renamed this task from There should be a API for querying donor type to There should be a API for querying whether somebody has donated.Mon, May 11, 3:29 PM
Jdlrobson-WMF closed this task as Resolved.
Jdlrobson-WMF updated the task description. (Show Details)

Change #1285463 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/WikimediaCustomizations@master] Donor identification: Expand API

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