envelope-zero / backend

Serves the API and contains the application logic
Other
6 stars 3 forks source link

Allow transaction filtering by availableFrom #1004

Closed ekeih closed 7 months ago

ekeih commented 8 months ago

Is your feature request related to a problem? Please describe.

I am looking for incoming transactions that make up the income of a specified month, for example "Show me all transactions that are counted as income for March 2024".

Describe the solution you'd like Looking at the existing code I think the following could be a possible solution:

Describe alternatives you've considered

Currently, the only alternative is for the client application to fetch all incoming transactions (up to the month of interest) from the API and then filter them based on their availableFrom field. Processing this in the backend/database and only sending the result should be quicker (and easier to implement).

Additional context None, let me know if anything is unclear.

morremeyer commented 7 months ago

Love the detail in this issue. Made it even easier to implement, thanks!

This is now available exactly as you proposed in v5.4.0

ekeih commented 7 months ago

Nice, thanks!