Skip to content

Rename default transformer filter behavior to "all"#87

Merged
gpauloski merged 1 commit intomainfrom
all-filter
Jul 10, 2024
Merged

Rename default transformer filter behavior to "all"#87
gpauloski merged 1 commit intomainfrom
all-filter

Conversation

@gpauloski
Copy link
Copy Markdown
Contributor

Description

Adds the AllFilter, which behaves likes the old NullFilter, and make it the default. NullFilter now lets nothing through the filter. I.e., no objects will be transformer. I think this naming is more clear.

Fixes N/A

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (internal implementation changes)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (no changes to the code)
  • CI change (changes to CI workflows, packages, templates, etc.)
  • Version changes (changes to the package or dependency versions)

Testing

N/A

Pull Request Checklist

Please confirm the PR meets the following requirements.

  • Relevant tags are added (breaking, bug, dependencies, documentation, enhancement, refactor).
  • Code changes pass pre-commit (e.g., ruff, mypy, etc.).
  • Tests have been added to show the fix is effective or that the new feature works.
  • New and existing unit tests pass locally with the changes.
  • Docs have been updated and reviewed if relevant.

@gpauloski gpauloski added the internal Refactoring, style changes, testing, or code optimizations label Jul 10, 2024
This preserves the old behavior, as AllFilter now acts like how NullFilter
used to, and now NullFilter lets nothing through. I think these names are
more clear, especially for the default value.
@gpauloski gpauloski merged commit 27d5638 into main Jul 10, 2024
@gpauloski gpauloski deleted the all-filter branch July 10, 2024 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Refactoring, style changes, testing, or code optimizations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant