Skip to content

Bug: Include PostProcessingAction in CountAsync #550

@Justin-Menzis

Description

@Justin-Menzis

Context:

PostProcessingAction is documented to facilitate in-memory tranformations or filtering:
https://specification.ardalis.com/features/postprocessingaction.html

Issue:

In a simple scenario we have a Fullname computed property which is built from Firstname and Lastname columns. We use PostProcessingAction to implement filtering functionality on the Fullname.

Our ListAsync call handles this perfectly by filtering the result set correctly. However, our accompanying CountAsync ignores the PostProcessingAction and gives an incorrect totalcount for our paging implementation.

This does seem to be the intended implementation when looking at this: #134 (comment)

Expected result:

ListAsync and CountAsync should resolve to identical result sets. Since PostProcessingAction is documented to facilitate in-memory filtering I expect the CountAsync to also resolve the PostProcessingAction to respect any in-memory filtering implementations to return the correct count.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions