Skip to content

Conversation

@Naraveni
Copy link
Contributor

@Naraveni Naraveni commented Apr 3, 2025

Resolves #5105

Description

I have included Filter by Item for donations index page.
Part of the Feature which includes Filter by Category is already covered by #5127 .

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Included a system spec to test this new features

Screenshots

@cielf
Copy link
Collaborator

cielf commented Apr 4, 2025

I think it'll be simplest to hold off on merging this one into main until we get the other fix around this in.

@cielf
Copy link
Collaborator

cielf commented Aug 30, 2025

@Naraveni Sorry this seems to have fallen through the cracks. I addressed some conflicts that had arisen with the current main branch, and took a look at it for any functional issues. It passed that, so I'm raising it to @dorner 's attention for technical review.

@cielf cielf requested a review from dorner August 30, 2025 21:25
@@ -0,0 +1,32 @@
class DonationTotalsService
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a query, not a service, no?

@sources = @donations.collect(&:source).uniq.sort
@selected_source = filter_params[:by_source]
@selected_item = filter_params[:by_item_id]
@donation_totals = DonationTotalsService.call(current_organization.donations.class_filter(scope_filters))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, what does this even have to do with this PR? It's not even used anywhere that I can tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide filters by item and by categories on donations

3 participants