rubyforgood / mutual-aid

Mutual aid management platform for groups who build, support, and strengthen community resilience.
https://github.com/rubyforgood/mutual-aid/projects/4
MIT License
54 stars 62 forks source link

Experiment with moving serialization out of Filter classes #1005

Open solebared opened 2 years ago

solebared commented 2 years ago

Why

This allows us to extract serialization out of the Filter classes, leaving it appropriately in the controller -> serialization layer.

What

Introduces a FilterGroupBlueprint which dynamically determines whether to use a regular FilterOptionBlueprint or the special case ContributionTypeFilterOptionBlueprint.

Testing

Covered by existing tests.

Outstanding Questions, Concerns and Other Notes

?

Meta

@h-m-m , this came out of a pairing discussion we had many months ago. I remember spiking this out and found the branch lying around. Figured i'd bring it up to date and put up a PR. Totally happy to close this out though if this direction doesn't feel right.

Pre-Merge Checklist