Skip to content

Enhance API endpoint to support additional filters #7484

Closed
@pulsovi

Description

@pulsovi

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

  • The API endpoint is capable of handling additional filters.
  • Necessary hooks and extension points are provided to support external add-ons.
  • The changes do not affect existing functionality in other components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Staletype: enhancementAn improvement to existing user-facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions