Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment with moving serialization out of Filter classes #1005

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

solebared
Copy link
Collaborator

@solebared solebared commented Dec 30, 2021

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

  • Security & accessibility have been considered
  • Tests have been added, or an explanation has been given why the features cannot be tested
  • Documentation and comments have been added to the codebase where required
  • Entry added to CHANGELOG.md if appropriate
  • Outstanding questions and concerns have been resolved
  • Any next steps have been turned into Issues or Discussions as appropriate

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

This allows us to extract serialization out of the Filter classes,
leaving it appropriately in the controller -> serialization layer.
@solebared solebared requested a review from h-m-m December 30, 2021 19:23
@solebared solebared mentioned this pull request Dec 30, 2021
26 tasks
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.

1 participant