impress-org / givewp

GiveWP - The #1 Donation Plugin for WordPress. Easily accept donations and fundraise using your WordPress website.
https://givewp.com/
GNU General Public License v3.0
344 stars 191 forks source link

Enhance API endpoint to support additional filters #7484

Open pulsovi opened 2 months ago

pulsovi commented 2 months ago

User Story

As an admin user, I want the ability to filter the list of donations by donor ID so that I can manage and review donations from specific donors efficiently, even if they use multiple email addresses. This is crucial because a single donor may have several email addresses, complicating the tracking of their donation history.

Details

The current React version of the donations view in the back office does not support filtering donations by donor ID, despite the API endpoint being capable of such filtering. This limitation makes it challenging to consolidate donation histories for donors using multiple email addresses.

Additional Context

The Give\Donations\Endpoints\ListDonations class is extendable since version 3.4.0, which allows for the addition of various filters. This issue aims to enhance the API endpoint to support new filters, providing the necessary hooks for compatibility with future add-ons. The actual implementation of the donor ID filter will be handled in a separate add-on or snippet, ensuring that the main GiveWP plugin remains flexible and extensible.

Acceptance Criteria

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 14 additional days. Note, if this Issue is reporting a bug, please reach out to our support at https://givewp.com/support. If this is a feature request, please see our feedback board at feedback.givewp.com — that’s the best place to make feature requests, unless you’re providing a PR.

pulsovi commented 1 month ago

Remove stale label